現在有兩台電腦(A跟B)
A已經可以順利用SSH無密碼連進B,但是現在沒有辦法從B用SSH無密碼連到A
步驟如下
1. ssh-copy-id -i A@desktop
2. 出現ERROR(No identities found) ------問題1
3. ssh-copy-id -i /root/.ssh/id_rsa A@desktop
3. 一樣出現ERROR(No identities found)
4. 嘗試登入localhost (ssh localhost)
5. 出現訊息
The authenticity of host 'localhost' can't be established
RSA Key fingerprint is ..................................
Are you sure you want to continue connecting (yes/no)?
(輸入yes後)
Warning: Permanently added 'localhost' (RSA) to the list of known hosts.
root@localhost's password:
(輸入密碼後)
Permission denied,please try again. -----問題二
接著又輸入了兩次都還是錯誤......
察看了/etc/hosts 裏面是有localhost及電腦A的
而在sshd_config裏的設定也是允許root登入(PermitRootLogin yes)
為什麼會發生問題二的狀況呢?
又,為什麼會有No identities found(問題1)的狀況發生呢?
(嘗試過到/root/.ssh下執行command依然不行)
麻煩各位解惑了,謝謝
--
「學弟,我東西掉了,幫我撿一下」
「喔...」
醫生診斷:撕裂傷
--
A已經可以順利用SSH無密碼連進B,但是現在沒有辦法從B用SSH無密碼連到A
步驟如下
1. ssh-copy-id -i A@desktop
2. 出現ERROR(No identities found) ------問題1
3. ssh-copy-id -i /root/.ssh/id_rsa A@desktop
3. 一樣出現ERROR(No identities found)
4. 嘗試登入localhost (ssh localhost)
5. 出現訊息
The authenticity of host 'localhost' can't be established
RSA Key fingerprint is ..................................
Are you sure you want to continue connecting (yes/no)?
(輸入yes後)
Warning: Permanently added 'localhost' (RSA) to the list of known hosts.
root@localhost's password:
(輸入密碼後)
Permission denied,please try again. -----問題二
接著又輸入了兩次都還是錯誤......
察看了/etc/hosts 裏面是有localhost及電腦A的
而在sshd_config裏的設定也是允許root登入(PermitRootLogin yes)
為什麼會發生問題二的狀況呢?
又,為什麼會有No identities found(問題1)的狀況發生呢?
(嘗試過到/root/.ssh下執行command依然不行)
麻煩各位解惑了,謝謝
--
「學弟,我東西掉了,幫我撿一下」
「喔...」
醫生診斷:撕裂傷
--
All Comments