Error al conectar mediante ssh - no matching host key type found

Error al conectar mediante ssh - no matching host key type found

Posted by Guilgo Blog on Saturday, March 15, 2025

Al intentar realizar una conexión contra mi máquina favorita

Unable to negotiate with <b>máquina favorita</b> port 22: no matching host key type found. Their offer: ssh-rsa,ssh-dss

Para solventar dicho problema, debemos realizar la conexión de la siguiente manetera:

ssh dguillermo@<b>máquina favorita</b> -oHostKeyAlgorithms=+ssh-rsa

También podríamos añadir

vim ~/.ssh/config

Host <b>máquina favorita</b>
    HostName 9.9.9.9
    User USUARER
    Port 22
    HostkeyAlgorithms +ssh-rsa