User Tools

Site Tools


ssh_notes

no matching host key type found

error

$ ssh hostname -l username
Unable to negotiate with <IP address> port 22: no matching host key type found. Their offer: ssh-rsa,ssh-dss

workaround

ssh -oHostKeyAlgorithms=+ssh-dss hostname -l username

copying keys

When setting up password less authentication via ssh, use ssh-copy-id to copy the public key to the remote machine.

The command looks like

ssh-copy-id user@host

When you run it the first time, it will ask for password and then copies the key to the remote machine. It is very convenient!

Ref:

ssh_notes.txt · Last modified: 2024/04/28 04:37 by raju