Host key verification failed
Today I got the error "host key verification failed" when trying to connect from my Linux desktop to my Google Cloud VM "linuxintro.org": # ssh thorsten@linuxintro.org The authenticity of host 'linuxintro.org (34.122.183.250)' can't be established. ED25519 key fingerprint is SHA256:7F9VxKJOEhY/ulnvywkGuQRZUB6S5xd2hG2oWbCSd2E. This key is not known by any other names Are you sure you want to continue connecting (yes/no/[fingerprint])? Host key verification failed. The reason was that I had never logged in before, so the system did not know the key of my target VM. Solution was to call: # ssh -o "StrictHostKeyChecking no" thorsten@linuxintro.org A question that remains open with me is why I did not have to do it earlier. Earlier, the host keys were automatically added to the known_hosts file. Now I get the next error: # ssh thorsten@linuxintro.org thorsten@linuxintro.org: Permission denied (publickey). To resolve this error, I need a private/pub...