码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2016-07-09 07:09:01      阅读:110      评论:0      收藏:0      [点我收藏+]

标签:blank   配置文件   target   style   title   

打开sshd配置文件
# vim  /etc/ssh/sshd_config  在最后面增加一行 :
PermitRootLogin without-password
保存配置文件后重启sshd服务
# service  sshd  restart




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

标签:blank   配置文件   target   style   title   

原文地址:http://hiyang.blog.51cto.com/10728919/1812765

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!