限制root远程登录: 修改:vi /etc/ssh/sshd_config 搜索Root(/Root)
把#PermitRootLogin yes修改为(PermitRootLogin no) 改完配置文件后需要重启服务:systemctl restart sshd.service
限制root远程登录: 修改:vi /etc/ssh/sshd_config 搜索Root(/Root)
把#PermitRootLogin yes修改为(PermitRootLogin no) 改完配置文件后需要重启服务:systemctl restart sshd.service
上一篇:sudo命令
su,sudo,限制root远程登录
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M