天天看點

Server responded" Algorithm negotiation failed"

Ubuntu 16.04 安裝 openssh-server後,使用ssh用戶端連接配接時可能報此錯誤,情況如下圖所示

Server responded" Algorithm negotiation failed"

server responded "algorithm negotiation failed”

Server responded" Algorithm negotiation failed"

解決方法

修改ssh的配置檔案 /etc/ssh/sshd_config

Server responded" Algorithm negotiation failed"

在配置檔案中添加:

Server responded" Algorithm negotiation failed"

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]

Server responded" Algorithm negotiation failed"

重新開機sshd服務後

Server responded" Algorithm negotiation failed"

就可正常連接配接了

Server responded" Algorithm negotiation failed"

傳送個Python試一下

Server responded" Algorithm negotiation failed"

繼續閱讀