Posted in Linux
SSH: The authenticity of host ‘xxxxx (xxxxx)’ can’t be established.
Se vi è capitato di clonare un VPS Linux e poi avete provato a collegarvi via ssh, avrete notato un’informativa tipo:
1 2 3 4 5 6 7 8 |
The authenticity of host 'xxxx (xxxxxxx)' can't be established. ED25519 key fingerprint is SHA256:aaaaaaaaaaaaaaaaaaaaaa. This host key is known by the following other names/addresses: ~/.ssh/known_hosts:611: xx.xx.xx.xx ... ... (11 additional names omitted) Are you sure you want to continue connecting (yes/no/[fingerprint])? yes |
Questo capita se avete l’opzione StrictHostKeyChecking attiva nel client SSH.
Per ovviare, si può rigenerare la chiave server come segue:
1 2 |
rm /etc/ssh/ssh_host_* dpkg-reconfigure openssh-server |
enjoy!
Ti interessa acquistare un dominio a prezzi ultraconvenienti? clicca qui
Se hai trovato utili le informazioni su questo blog,
Fai una donazione!
Clicca sul bottone qui sotto o almeno clicca sul banner pubblicitario 🙂
Commenta