vim /etc/ssh/sshd_config
#######################################
PermitRootLogin yes
PubkeyAuthentication yes
PasswordAuthentication no
# UsePAM yes
#######################################
service ssh restart

最后发现 UsePAM yes这一行导致登录不上,注释掉就好了

最讨厌你,也最喜欢你