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:June 11th, 2018 at 01:25 am

Leave a Comment