1.打开远程登录配置文件
vim /etc/ssh/sshd_config,在其中找到"#PermitRootLogin yes"修改为 "PermitRootLogin no”表示不允许root用户远程登录。
2.然后重启sshd服务:service sshd restart
文章标签 远程限制root登录 文章分类 运维
1.打开远程登录配置文件
vim /etc/ssh/sshd_config,在其中找到"#PermitRootLogin yes"修改为 "PermitRootLogin no”表示不允许root用户远程登录。
2.然后重启sshd服务:service sshd restart
上一篇:在root下禁止用户登录
su,sudo,限制root远程登录
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M