vim /etc/ssh/sshd_config
#######################################
PermitRootLogin yes
PubkeyAuthentication yes
PasswordAuthentication no
# UsePAM yes
#######################################
service ssh restart最后发现 UsePAM yes这一行导致登录不上,注释掉就好了
vim /etc/ssh/sshd_config
#######################################
PermitRootLogin yes
PubkeyAuthentication yes
PasswordAuthentication no
# UsePAM yes
#######################################
service ssh restart最后发现 UsePAM yes这一行导致登录不上,注释掉就好了