新添加普通用户,禁止Root用户登录。

vim /etc/ssh/sshd_config

PermitRootLogin no
PermitEmptyPasswords no
/etc/init.d/sshd reload

发现普通用户登录不了,完了,Root用于也登录不了,幸亏服务器在身边。

后来发现 /etc/hosts.deny 里面有我的客户端IP,难道是自动添加的?去掉了就行了。