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 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.

Anyway, just wanted to write down this hint, it will help me in the future, hope it will help you, too. Source: https://superuser.com/questions/125324/how-can-i-avoid-sshs-host-verification-for-known-hosts/125326#125326

Comments

Popular posts from this blog

Set up a webcam with Linux

PuTTY: No supported authentication methods available

My SAT>IP Server