permission denied (publickey)解决方法

ssh出现permission denied (publickey)问题:
修改/etc/ssh/sshd-config文件.
将其中的PermitRootLogin no修改为yes
PubkeyAuthentication yes修改为no
AuthorizedKeysFile .ssh/authorized_keys前面加上#屏蔽掉,
PasswordAuthentication no修改为yes就可以了。
重启sshd即可:service sshd restart

血泪教训:
PubkeyAuthentication修改为no将导致ssh登录不了!!!
posted @ 2013-08-26 14:47  小生一直跑  阅读(1892)  评论(0)    收藏  举报