回覆列表
  • 1 # 何以笙丶丶

    ssh client 報 algorithm negotiation failed的解決方法之一

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

    在配置檔案中新增:

    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升級後,為了安全,預設不再採用原來一些加密演算法,我們手工新增進去即可。

  • 中秋節和大豐收的關聯?
  • 孩子上學入學你犯難了嗎?