[問題] SSH 不用密碼登入
想要A主機登入B主機時不輸入密碼就可以登入, 目前用了Key的方式來達成,
但設定完後還是會要我輸入password, 流程如下:
1.A主機設定
(1) ssh-keygen -t rsa -f test
(2) ssh-copy-id -i ~/.ssh/test.pub root@xxx.xxx.xxx.xxx
(3) scp ~/.ssh/test.pub root@xxx.xxx.xxx.xxx:/root/.ssh
2.B主機設定
(1) vi /etc/ssh/sshd_config
PubkeyAuthentication yes
AuthorizedKeysFile .ssh/authorized_keys
/etc/init.d/sshd restart
(2) chmod 644 ~/.ssh/authorized_keys && chmod 711 ~/.ssh/
設定完成後到A主機 ssh root@xxx.xxx.xxx.xxx
還是會跳出root@xxx.xxx.xxx.xxx's password:
請問是什麼設定有問題嗎?
17:47:35 xx sshd[29829]: reverse mapping checking getaddrinfo for xxx-xxx-xxx-xxx.hinet-ip.hinet.net [xxx.xxx.xxx.xxx] failed - POSSIBLE BREAK-IN ATTEMPT!
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 203.69.59.91
※ 文章網址: http://www.ptt.cc/bbs/Linux/M.1409732598.A.506.html
※ 編輯: tas72732002 (203.69.59.91), 09/03/2014 16:28:21
推
09/03 16:33, , 1F
09/03 16:33, 1F
→
09/03 16:34, , 2F
09/03 16:34, 2F
→
09/03 16:47, , 3F
09/03 16:47, 3F
→
09/03 16:47, , 4F
09/03 16:47, 4F
推
09/03 16:48, , 5F
09/03 16:48, 5F
→
09/03 17:03, , 6F
09/03 17:03, 6F
推
09/03 17:03, , 7F
09/03 17:03, 7F
→
09/03 17:04, , 8F
09/03 17:04, 8F
→
09/03 17:04, , 9F
09/03 17:04, 9F
→
09/03 17:04, , 10F
09/03 17:04, 10F
※ 編輯: tas72732002 (203.69.59.91), 09/03/2014 17:23:29
→
09/03 17:27, , 11F
09/03 17:27, 11F
→
09/03 17:27, , 12F
09/03 17:27, 12F
→
09/03 17:27, , 13F
09/03 17:27, 13F
→
09/03 17:28, , 14F
09/03 17:28, 14F
推
09/03 17:32, , 15F
09/03 17:32, 15F
→
09/03 17:33, , 16F
09/03 17:33, 16F
→
09/03 17:33, , 17F
09/03 17:33, 17F
推
09/03 17:34, , 18F
09/03 17:34, 18F
→
09/03 17:34, , 19F
09/03 17:34, 19F
→
09/03 17:36, , 20F
09/03 17:36, 20F
→
09/03 17:38, , 21F
09/03 17:38, 21F
推
09/03 17:40, , 22F
09/03 17:40, 22F
→
09/03 17:40, , 23F
09/03 17:40, 23F
→
09/03 17:40, , 24F
09/03 17:40, 24F
推
09/03 17:45, , 25F
09/03 17:45, 25F
→
09/03 17:53, , 26F
09/03 17:53, 26F
※ 編輯: tas72732002 (203.69.59.91), 09/03/2014 17:53:57
→
09/03 17:54, , 27F
09/03 17:54, 27F
推
09/03 18:02, , 28F
09/03 18:02, 28F
推
09/03 18:03, , 29F
09/03 18:03, 29F
→
09/03 19:47, , 30F
09/03 19:47, 30F
→
09/03 21:18, , 31F
09/03 21:18, 31F
→
09/03 21:31, , 32F
09/03 21:31, 32F
→
09/03 21:39, , 33F
09/03 21:39, 33F
→
09/03 21:41, , 34F
09/03 21:41, 34F
→
09/03 21:42, , 35F
09/03 21:42, 35F
→
09/03 21:46, , 36F
09/03 21:46, 36F
→
09/03 21:48, , 37F
09/03 21:48, 37F
→
09/04 03:16, , 38F
09/04 03:16, 38F
討論串 (同標題文章)
Linux 近期熱門文章
21
56
PTT數位生活區 即時熱門文章