1. 程式人生 > >[已解決]SSH遠端登入失敗,提示“Password authentication failed”

[已解決]SSH遠端登入失敗,提示“Password authentication failed”

使用linux下ssh登陸,

ssh [email protected]

提示“Permission denied, please try again.”

然而我的密碼都是對的啊啊啊啊啊。

排查點一:

檢視防火牆設定:電腦->控制中心->防火牆 (Computer -> Control Center-> Firewall)

sshd的22埠已經勾選上了。

排查點二:

檢視到網上的資料:http://blog.csdn.net/tangyongjiang/article/details/6045176

1. 去編輯sshd_config檔案

vi /etc/ssh/sshd_config
2. 把PasswordAuthentication設成yes

彆著急,再接著看

3. 去編輯ssh_config檔案

 vi /etc/ssh/ssh_config
4. 把PasswordAuthentication前面的#號去掉使之生效

5. 重啟sshd

/etc/init.d/sshd restart

再一次

ssh [email protected]

連線成功!!!耶!!!!