摘要: 关闭root用户的ssh登录 1. 使用root账户登录系统,添加一个普通账户例如test,并为其设置密码 useradd test passwd test 2. 修改配置文件 编辑配置文件vim /etc/ssh/sshd_config修改PermitRootLogin后面的yes为no,并且去掉 阅读全文
posted @ 2020-12-21 16:17 左岸丶 阅读(819) 评论(0) 推荐(0) 编辑