Impossibile connettersi ad un server SSH obsoleto: Difference between revisions
Jump to navigation
Jump to search
Created page with "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 vuole impostare per tutti i client: vi ~/.ssh/config HostKeyAlgorithms +ssh-rsa PubkeyAcceptedKeyTypes +ssh-rsa" |
mNo edit summary |
||
| Line 5: | Line 5: | ||
Da command line, aggiungere le opzioni: | Da command line, aggiungere le opzioni: | ||
-o HostKeyAlgorithms=+ssh-rsa -o PubkeyAcceptedKeyTypes=+ssh-rsa | -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: | Se si vuole impostare per tutti i client: | ||
vi ~/.ssh/config | vi ~/.ssh/config | ||
Latest revision as of 11:33, 5 December 2025
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