no matching host key type found. Their offer: ssh-dss
When i try connect to a server, i get error
1 2 3 |
Unable to negotiate with 50.62.71.1 port 22: no matching host key type found. Their offer: ssh-dss root@ok:~# |
Same happens with scp
1 2 3 |
Unable to negotiate with 50.62.71.1 port 22: no matching host key type found. Their offer: ssh-dss root@ok:~# |
To fix, add -oHostKeyAlgorithms=+ssh-dss to the command.
Example
1 |
ssh -oHostKeyAlgorithms=+ssh-dss n1eb4141@50.62.71.1 |
To list all supported ciphers, run
1 |
ssh -Q cipher |
You can use -c option to change chiper.
1 |
ssh -c aes128-cbc n1eb4141@50.62.71.1 |