Jay
2 min readJul 29, 2022

DevOps: SSH Connection issues and Troubleshooting

When I started my IT career, I know about Linux/Unix operating systems a little bit and was confused with SSM connection errors. SSH is the primary protocol to connect to remote servers(Linux/Unix, recently windows also supporting via OpenSSH). So I decided to create this page for tracking all SSH errors (which occur to me)and their solutions. Before that it would be great if you know SSH protocol works, for that, I will be writing to post in the future but for now I am starting with the below issue which I faced yesterday.

List of errors:

  • Unable to negotiate with x.x.x.x(IP address) port 22: no matching host key type found. Their offer: ssh-rsa,ssh-dss.

Solutions:

  • Unable to negotiate with 10.0.37.42(IP address) port 22: no matching host key type found. Their offer: ssh-rsa,ssh-dss.

This error raises when the ssh client is not able to provide/select the HostkeyAlgorithms. To resolve this, we should explicitly mention the algorithm similar to below.

# ssh username@10.0.37.42 -o HostKeyAlgorithms=+ssh-rsa -o PubkeyAcceptedKeyTypes=+ssh-rsa

we can also mention in ssh_config file like below:

SSH config

I will add more errors as and when I see the error. I Hope, You liked this article. More articles related to DevOps tools, Linux and AWS on the way so please follow me for getting the notifications. Bye for now 😀.

No responses yet