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:

# ssh

The authenticity of host ' (' 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"

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.

Anyway, just wanted to write down this hint, it will help me in the future, hope it will help you, too. Source:


Popular posts from this blog

Set up a webcam with Linux

PuTTY: No supported authentication methods available

My SAT>IP Server