问题描述:
linux使用终端ssh连接设备时出现Unable to negotiate with 192.168.1.1 port 22: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1, diffie-hellman-group14-sha1, diffie-hellman-group-exchange-sha1

解决办法:
打开终端,输入sudo vim /etc/ssh/ssh_config,在该文件的最后另起一行加入上面给出的3种秘钥交换方法中的其中一种即可,例如输入KexAlgorithms +diffie-hellman-group1-sha1加入最后一种即可

Logo

更多推荐