SSH on Mac problem to negotiate key

How to setup the App to solve the following issue:

Unable to negotiate with 192.168.2.5 port 22: no matching key exchange method found. Their offer: diffie-hellman-group14-sha1,diffie-hellman-group1-sha1

PUTTY as well as Mobaxterm work with the same target without problems.

Regards,
Tomek

Please try set HostkeyAlgorithms to +ssh-rsa in Advanced options in Settings of the profile.

Kind Regards,

Yang

Definition of the following options solved the problem:

~/.ssh/config

Host *
HostkeyAlgorithms +ssh-rsa
PubkeyAcceptedAlgorithms +ssh-rsa
KexAlgorithms diffie-hellman-group1-sha1

Regards,
Tomek

1 Like