centos修改沒法用用戶名和密碼登陸

vi /etc/ssh/sshd_config
PermitRootLogin
這行改成
PermitRootLogin yes
PasswordAuthentication no
上面的no改成yes
UsePAM yes
上面的yes改成nossh

相關文章
相關標籤/搜索