News - Logiciels Libres

Connexion sur des vieux systèmes en SSH : no matching host key type found

| | Logiciels Libres | 7 Commentaires | 32973
Connexion sur des vieux systèmes en SSH : no matching host key type found
Bonjour à tous,

J'ai récemment du me connecter à de vieux serveurs.

Au moment de lancer la commande :

Code BASH :
ssh adrien@192.168.21.106


Le terminal me répond :

Code BASH :
Unable to negotiate with 192.168.21.106 port 22: no matching host key type found. Their offer: ssh-rsa,ssh-dss


L'astuce pour se connecter est d'ajouter un algorithme via l'option HostKeyAlgorithms

Code BASH :
ssh adrien@192.168.21.106 -oHostKeyAlgorithms=+ssh-rsa


La connexion est alors possible

Code TEXT :
The authenticity of host '192.168.21.106 (192.168.21.106)' can't be established.
RSA key fingerprint is SHA256:7h3auMUOWm95yKFv/S2NQU0O9jyk4JHQ02giiAJTsI0.
This key is not known by any other names
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added '192.168.21.106' (RSA) to the list of known hosts.
[email protected]'s password: 


Voilà :)