Supposedly the server we want to access is at address 192.168.1.11 and it only supports older key hash algorithms. Add those algorithms in ~/.ssh/config, such as:
Host 192.168.1.11
KexAlgorithms +diffie-hellman-group1-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1
PubkeyAcceptedAlgorithms +ssh-rsa
HostkeyAlgorithms +ssh-rsa
KexAlgorithms +diffie-hellman-group1-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1
PubkeyAcceptedAlgorithms +ssh-rsa
HostkeyAlgorithms +ssh-rsa
On another occasion, when I do that on Windows 11, I have to create a file %USERPROFILE%\.ssh\config with the content:
Host 192.168.1.11
KexAlgorithms +diffie-hellman-group1-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1
HostkeyAlgorithms +ssh-rsa
PubkeyAcceptedAlgorithms +ssh-rsa
MACS hmac-md5,hmac-sha1
No comments:
Post a Comment