Bad protocol 2 host key algorithms +ssh-rsa
The error message Bad protocol 2 host key algorithms '+ssh-rsa'
indicates that the OpenSSH version you are using does not support this syntax for specifying the HostKeyAlgorithms
. Your version of OpenSSH (5.3) is very old and likely doesn't recognize this newer option syntax, which was introduced in later OpenSSH versions.
To resolve the issue, you have two primary options:
Option 1: Upgrade OpenSSH on Your Client
Option 2: Manually Add the Host Key to Known Hosts
Since upgrading might not always be feasible, you can try manually adding the server’s SSH host key to your ~/.ssh/known_hosts
file. This workaround can bypass the need for negotiating the host key algorithm.
Manually scan the host's key:
Attempt to connect again:
Comments
Post a Comment