SSH 不用密碼登入 - Linux
By Frederica
at 2014-09-03T16:23
at 2014-09-03T16:23
Table of Contents
想要A主機登入B主機時不輸入密碼就可以登入, 目前用了Key的方式來達成,
但設定完後還是會要我輸入password, 流程如下:
1.A主機設定
(1) ssh-keygen -t rsa -f test
(2) ssh-copy-id -i ~/.ssh/test.pub [email protected]
(3) scp ~/.ssh/test.pub [email protected]:/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 [email protected]
還是會跳出[email protected]'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!
--
Tags:
Linux
All Comments
By Valerie
at 2014-09-07T00:15
at 2014-09-07T00:15
By Rosalind
at 2014-09-08T09:48
at 2014-09-08T09:48
By Lucy
at 2014-09-09T00:21
at 2014-09-09T00:21
By Genevieve
at 2014-09-09T04:18
at 2014-09-09T04:18
By Kama
at 2014-09-11T12:33
at 2014-09-11T12:33
By Annie
at 2014-09-12T04:14
at 2014-09-12T04:14
By Blanche
at 2014-09-16T20:36
at 2014-09-16T20:36
By Joseph
at 2014-09-19T13:31
at 2014-09-19T13:31
By Anonymous
at 2014-09-24T00:42
at 2014-09-24T00:42
By Regina
at 2014-09-28T07:16
at 2014-09-28T07:16
By Tracy
at 2014-09-30T10:32
at 2014-09-30T10:32
By Eden
at 2014-10-03T05:10
at 2014-10-03T05:10
By Yuri
at 2014-10-07T07:13
at 2014-10-07T07:13
By Daniel
at 2014-10-12T00:45
at 2014-10-12T00:45
By Connor
at 2014-10-13T07:20
at 2014-10-13T07:20
By Elvira
at 2014-10-17T13:02
at 2014-10-17T13:02
By Megan
at 2014-10-20T09:18
at 2014-10-20T09:18
By Linda
at 2014-10-24T21:20
at 2014-10-24T21:20
By Carolina Franco
at 2014-10-26T01:17
at 2014-10-26T01:17
By Olga
at 2014-10-26T10:00
at 2014-10-26T10:00
By Olivia
at 2014-10-28T22:21
at 2014-10-28T22:21
By Steve
at 2014-10-29T14:42
at 2014-10-29T14:42
By Frederic
at 2014-10-29T20:24
at 2014-10-29T20:24
By Una
at 2014-11-02T09:04
at 2014-11-02T09:04
By Frederica
at 2014-11-06T20:11
at 2014-11-06T20:11
By Donna
at 2014-11-09T18:28
at 2014-11-09T18:28
By Carol
at 2014-11-12T00:32
at 2014-11-12T00:32
By Steve
at 2014-11-15T12:34
at 2014-11-15T12:34
By Vanessa
at 2014-11-19T02:35
at 2014-11-19T02:35
By Puput
at 2014-11-22T14:57
at 2014-11-22T14:57
By Irma
at 2014-11-26T03:53
at 2014-11-26T03:53
By Callum
at 2014-11-28T13:13
at 2014-11-28T13:13
Related Posts
128MB的舊筆電想當server
By Adele
at 2014-09-02T22:40
at 2014-09-02T22:40
virtual box中無法調整螢幕解析度
By Linda
at 2014-09-02T18:11
at 2014-09-02T18:11
virtual box中無法調整螢幕解析度
By Michael
at 2014-09-02T15:11
at 2014-09-02T15:11
如何顯示最後幾行行號?
By Daniel
at 2014-09-02T01:44
at 2014-09-02T01:44
如何顯示最後幾行行號?
By Puput
at 2014-09-01T23:32
at 2014-09-01T23:32