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.

  1. Manually scan the host's key:


    ssh-keyscan -p 22 192.227.112.104 >> ~/.ssh/known_hosts
  2. Attempt to connect again:


    ssh -p 22 root@192.227.112.104

Comments

Popular posts from this blog

cpanel exam CPSP Answers

How to install zimbra collaboration suite 8.8.11 on CentOS 7

awstats installation