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

时间:2016-07-14 15:14:46   收藏:0   阅读:1263

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

permission denied

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

PermitRootLogin without-password

改为:

PermitRootLogin yes

然后重启ssh:

restart ssh

再ssh localhost就可以登录了

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!