ssh连接Ubuntu之access denied

解决方法是:

修改/etc/ssh/ssh_config文件,

#PermitRootLogin prohibit-password改为
PermitRootLogin yes

 

然后 PasswordAuthentication yes

最后,设置root的密码。passwd root。

重启ssh(/etc/init.d/ssh restart)之后就可以了。

posted @ 2017-12-02 14:11  liu_xh  阅读(1628)  评论(0编辑  收藏  举报