Unable to negotiate with 1domain.com port 22: no matching host key type found. Their offer: ssh-rsa,ssh-dss

This error for ssh can be solved with the following information.

-Reattempt your SSH connection, adding the following to your command line:

-oHostKeyAlgorithms=+ssh-rsa

ie.

ssh -oHostKeyAlgorithms=+ssh-rsa fatjacks@69.160.53.87

or

ssh -oHostKeyAlgorithms=+ssh-dsa fatjacks@69.160.53.873

You can also try modifying the local(your computer) SSH configuration to add the below values to make this change permanent.

-Type sudo nano ~/.ssh/config, then enter your administrative password if prompted.

Host controls
    HostName domain.com
    IdentityFile ~/.ssh/domain.pem
    User root
    Port 22
    ServerAliveInterval 120
    HostKeyAlgorithms +ssh-rsa


Leave a Comment