centos修改无法用用户名和密码登录

vi /etc/ssh/sshd_config
PermitRootLogin
这行改为
PermitRootLogin yes
PasswordAuthentication no
上面的no改为yes
UsePAM yes
上面的yes改为no

posted @ 2017-04-16 08:11  Peter_Bin  阅读(469)  评论(0编辑  收藏  举报