讓ssh只接受金鑰登入,使用密碼無法登入
2009-04-01 |
在ssh設定檔(通常是 /etc/ssh/sshd_config),將
PasswordAuthentication設定為 no
再將ssh重開即可(service sshd restart)
記得要先將公開金鑰放到Server,不然就不能登入了
在ssh設定檔(通常是 /etc/ssh/sshd_config),將
PasswordAuthentication設定為 no
再將ssh重開即可(service sshd restart)
記得要先將公開金鑰放到Server,不然就不能登入了