解决Ubuntu的root账号无法登录SSH问题-Permission denied, please try again.

刚安装了Ubuntu 14.04 server的虚拟机,普通帐号可以远程登录,但是root不行,输入密码后一直报错:

permission denied

最后发现ssh的配置(/etc/ssh/sshd_config)不大一样,14.04的默认配置是:

PermitRootLogin without-password

改为:

PermitRootLogin yes

然后重启ssh:

restart ssh

再ssh localhost就可以登录了

posted @ 2016-07-14 14:23  哼哼哈哈二将  阅读(9198)  评论(0编辑  收藏  举报