silanos_1

Analytics

ad silanors2

2017年4月21日 星期五

[SSH]解決 SSH連線時發生can't agree a host key algorithm錯誤 (To solve the SSH connection can not agree a host key algorithm error)


問題
SSH連線時發生can't agree a host key algorithm錯誤



解決方法
1.下載Putty
2.Putty選用Telnet遠端連線,輸入IP與PORT並點選下方OPEN按鈕,接著輸入帳號=>ENTER=>接著輸入密碼=>ENTER,成功進入後會出現#,輸入以下各行指令並每一行按下ENTER

chmod 0600 /etc/ssh/ssh_host_rsa_key
chmod 0600 /etc/ssh/ssh_host_dsa_key
chmod 0600 /etc/config/ssh/ssh_host_rsa_key
chmod 0600 /etc/config/ssh/ssh_host_dsa_key
chmod 0644 /etc/ssh/*.pub
chmod 0644 /etc/config/ssh/*.pub
接著重開Putty選用SSH遠端連線,輸入IP與PORT並點選下方OPEN按鈕以連線

沒有留言:

as silanors3

熱門文章

bloggerads