天天看點

debain登陸,提示“Password authentication failed”原因

passwd root 先設定root密碼      

1.vi伺服器端的/etc/ssh/sshd_config

2.找到#PermitRootLogin no将其修改為PermitRootLogin yes

3.把PasswordAuthentication設成yes

4.重新開機ssh服務