f00bar 个人日志

centos7禁用root用户登陆
添加新用户useradd testpasswd test编辑配置文件/etc/ssh/sshd_configPer...
扫描右侧二维码阅读全文
20
2018/01

centos7禁用root用户登陆

添加新用户

useradd test
passwd test

编辑配置文件/etc/ssh/sshd_config

PermitRootLogin no
MaxAuthTries 6

重启sshd服务

systemctl restart sshd.service
Last modification:January 6th, 2020 at 10:34 am

Comment here is closed