centos修改无法用用户名和密码登录
vi /etc/ssh/sshd_config
PermitRootLogin
这行改为
PermitRootLogin yes
PasswordAuthentication no
上面的no改为yes
UsePAM yes
上面的yes改为no
vi /etc/ssh/sshd_config
PermitRootLogin
这行改为
PermitRootLogin yes
PasswordAuthentication no
上面的no改为yes
UsePAM yes
上面的yes改为no