kazuya@KAZUYA-PC ~
$ ssh ibmuser@192.168.200.1
Unable to negotiate with 192.168.200.1 port 22: no matching key exchange method found. Their offer: diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1
可以一次
ssh -oKexAlgorithms=+diffie-hellman-group1-sha1 ibmuser@192.168.200.1
或修改 ssh_config
vi /etc/ssh/ssh_config
或
vi /etc/ssh_config
注: 不是在 sshd_config,sshd_config 是服务端,这里只用 ssh,所以是改 ssh_config 客户端
KexAlgorithms +diffie-hellman-group14-sha1
注: 有加号,指加上 diffie-hellman-group14-sha1,如果不带加号,变成只有