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

在root权限下
sudo gedit /etc/ssh/sshd_config
ctrl+f找到"# Authentication:"
将"# Authentication:"下面三行内容替换成:
LoginGraceTime 120
#PermitRootLogin without-password
PermitRootLogin yes
StrictModes yes

posted on 2017-10-18 18:23  小明在线  阅读(1682)  评论(0编辑  收藏  举报

导航