root账户不能使用密码只能使用密钥远程登陆

 
打开sshd配置文件
vim /etc/ssh/sshd_config 在最后面增加一行 :
PermitRootLogin without-password
复制代码
保存配置文件后重启sshd服务
service sshd restart
posted @ 2016-11-24 15:24  专注才能精通  阅读(243)  评论(0)    收藏  举报