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

ssh远程登录,禁止root登录

时间:2017-07-16 15:50:55      阅读:233      评论:0      收藏:0      [点我收藏+]

标签:rest   roo   emc   sshd   otl   add   远程登录   登录   star   

1,useradd xiaobing
passwd xiaobing (设置密码)

2,禁止root登陆,修改 /etc/ssh/sshd_config
PermitRootLogin yes 改为 PermitRootLogin no

systemctlrestart sshd

3,增加sudoer权限

4,vi /etc/sudoers
增加:
xiaobing ALL=(ALL) ALL

ssh远程登录,禁止root登录

标签:rest   roo   emc   sshd   otl   add   远程登录   登录   star   

原文地址:http://www.cnblogs.com/minsons/p/7190545.html

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