linux 连接网络设备报错 ssh no matching cipher found

  • 连接华三设备
    Unable to negotiate with 192.168.56.2 port 22: no matching cipher found. Their offer: aes128-cbc,aes256-cbc,3des-cbc,des-cbc

    解决办法:
    编辑ssh配置文件:
    sudo vim /etc/ssh/ssh_config

    添加以下内容
    Ciphers aes128-ctr,aes192-ctr,aes256-ctr,aes128-cbc,3des-cbc,aes192-cbc,aes256-cbc

  • 连接思科设备
    Unable to negotiate with 192.168.159.132 port 22: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1

    解决办法:
    编辑ssh配置文件:
    sudo vim /etc/ssh/ssh_config

    添加以下内容
    KexAlgorithms +diffie-hellman-group1-sha1

发布了3 篇原创文章 · 获赞 1 · 访问量 651

猜你喜欢

转载自blog.csdn.net/q965844841qq/article/details/105532361