添加新用户

useradd test
passwd test

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

PermitRootLogin no
MaxAuthTries 6

重启sshd服务

systemctl restart sshd.service