一樣是SSH的問題 - Linux

By Gilbert
at 2011-04-05T19:15
at 2011-04-05T19:15
Table of Contents
現在有兩台電腦(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依然不行)
麻煩各位解惑了,謝謝
--
「學弟,我東西掉了,幫我撿一下」
「喔...」
醫生診斷:撕裂傷
--
Tags:
Linux
All Comments

By Tom
at 2011-04-06T20:46
at 2011-04-06T20:46

By Queena
at 2011-04-07T10:36
at 2011-04-07T10:36
Related Posts
gcc 編譯.o 不能執 command not found

By Noah
at 2011-04-05T18:08
at 2011-04-05T18:08
各種Linux版本的使用

By Skylar DavisLinda
at 2011-04-05T17:53
at 2011-04-05T17:53
LibreOffice 中文介面字體很小

By Audriana
at 2011-04-05T17:38
at 2011-04-05T17:38
sed指令取代的問題

By Elizabeth
at 2011-04-05T16:58
at 2011-04-05T16:58
UBUNTU安裝firefox 4.0

By Oliver
at 2011-04-05T16:50
at 2011-04-05T16:50