`

ssh permission denied (publickey)

ssh 
阅读更多
sudo apt-get install openssh-server

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  
/etc/init.d/ssh restart

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics