本页主题: Centos下如何禁止root远程登录? 打印 | 加为IE收藏 | 复制链接 | 收藏主题 | 上一主题 | 下一主题

btxd
级别: 管理员


精华: 0
发帖: 92
威望: 92 点
金币: 50012 个
贡献值: 0 点
在线时间:50(小时)
注册时间:2020-04-18
最后登录:2024-05-13

 Centos下如何禁止root远程登录?

需要编辑 /etc/ssh/sshd_config

vim /etc/ssh/sshd_config 

PermitRootLogin yes    # 允许root密钥登录


PasswordAuthentication no    # 不能账号密码登录


service sshd restart   重启SSH
顶端 Posted: 2023-12-30 18:17 | [楼 主]
帖子浏览记录 版块浏览记录
四四一七九 » 电脑综合技术应用

Total 0.007229(s) query 3, Time now is:05-14 09:54, Gzip enabled 鄂ICP备2023031436号
Powered by 四四一七九 © 2020-08 44179.com Corporation