Impossibile connettersi ad un server SSH obsoleto
Se si tenta di connettersi ad un server SSH obsoleto e si ottiene un errore del tipo:
Unable to negotiate with 192.168.0.100 port 22: no matching host key type found. Their offer: ssh-rsa,ssh-dss
bisogna forzare l'uso di chiavi obsolete.
Da command line, aggiungere le opzioni:
-o HostKeyAlgorithms=+ssh-rsa -o PubkeyAcceptedKeyTypes=+ssh-rsa
Se si usa rsync, aggiungere:
-e "ssh -o HostKeyAlgorithms=+ssh-rsa -o PubkeyAcceptedKeyTypes=+ssh-rsa"
Se si vuole impostare per tutti i client:
vi ~/.ssh/config
HostKeyAlgorithms +ssh-rsa PubkeyAcceptedKeyTypes +ssh-rsa