ssh: unable to negotiate – not matching host key type found

Written by  on July 1, 2022 

problem:
Unable to negotiate with 192.168.100.73 port 22: no matching host key type found. Their offer: ssh-rsa

more details:
ssh -vvv root@192.168.100.73

then fix by saying which type to use:
ssh -vvv -oHostKeyAlgorithms=+ssh-rsa root@192.168.100.73

Else adapt the config. See https://askubuntu.com/questions/836048/ssh-returns-no-matching-host-key-type-found-their-offer-ssh-dss

————

edit: since there was still a problem with deploying binaries to the target (embedded device), I’ve edited the ssh-config:

cat > ~/.ssh/config
Paste
Host 192.168.100.*
HostkeyAlgorithms +ssh-rsa
PubkeyAcceptedKeyTypes +ssh-rsa

Enter + CTRL+C, done :

Category : BashLinux