標籤:pass password restart algo md5 diff res 目錄 連結的伺服器
Ubuntu 16.04安裝openssh-server後,使用ssh用戶端串連時可能報此錯誤,情況如所示:
server responded "algorithm negotiation failed”
修改伺服器端ssh的設定檔,目錄為:/etc/ssh/sshd_config,輸入如下命令進行編輯
sudo vi /etc/ssh/sshd_config
切換編輯模式(i),設定參數
PasswordAuthentication yes
在設定檔末尾添加
Ciphers aes128-cbc,aes192-cbc,aes256-cbc,aes128-ctr,aes192-ctr,aes256-ctr,3des-cbc,arcfour128,arcfour256,arcfour,blowfish-cbc,cast128-cbc
MACs hmac-md5,hmac-sha1,[email protected],hmac-ripemd160,hmac-sha1-96,hmac-md5-96
KexAlgorithms diffie-hellman-group1-sha1,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group-exchange-sha256,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group1-sha1,[email protected]
重啟sshd服務後,ssh用戶端重新串連成功
sudo service ssh restart
Server responded "Algorithm negotiation failed" SSH Secure連結的伺服器錯誤