Mac ssh连接登录远端设备遇到的几个问题

Mac ssh连接登录遇到的几个问题

  • 报错现象-1

    •  $ ssh test@1.1.1.1
      Unable to negotiate with 10.20.250.56 port 22: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1
    • 处理方法

      • $ vi /etc/ssh/ssh_config
        ...
        Host *
        ...
        ### 在文本中最后添加下列内容
        KexAlgorithms +diffie-hellman-group1-sha1

         

  • 报错现象-2

    • $ ssh test@1.1.1.1
      Unable to negotiate with 10.20.1.5 port 22: no matching cipher found. Their offer: aes128-cbc,3des-cbc,aes192-cbc,aes256-cbc
    • 处理方法

      • $ vi /etc/ssh/ssh_config
        ...
        #   Port 22
        ...
        ​
        ### 将下面的配置解开注释
         Ciphers aes128-ctr,aes192-ctr,aes256-ctr,aes128-cbc,3des-cbc,aes128-cbc

         

       

posted @ 2021-01-20 12:12  名叫蛐蛐的喵  阅读(906)  评论(0编辑  收藏  举报