目前的解決方式是修改Client SSH Config.
/etc/ssh 是Client 的設定資料夾
/etc/sshd 是Server 的設定資料夾
/etc/ssh 是Client 的設定資料夾
/etc/sshd 是Server 的設定資料夾
這次遇到的問題是無法連線至遠端的Server,
所以是修改 /etc/ssh 資料夾。
問題1:
Unable to negotiate with 10.198.***.*** port 22: no matching key exchange method found. Their offer: diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
問題2:
Unable
to negotiate with 10.198.***.** port 22: no matching host key type found. Their
offer: ssh-rsa,ssh-dss
因為我的環境中, SSH 會include /etc/ssh/ssh_config.d/*.conf,所以我在該路徑加了一個melin.conf
內容如下:
KexAlgorithms diffie-hellman-group1-sha1,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1
Host *
HostKeyAlgorithms=+ssh-dss