Updated

What you see

SSH refuses to connect and prints a large warning ending with:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Host key verification failed.

What it means

The first time you connect to a server, SSH saves its fingerprint in a file on your computer called known_hosts. Now the server at this address presents a different one, and SSH stops you in case it's an impostor. Nearly always the reason is harmless: the server was reinstalled, or the address now belongs to a different server.
Quick fix
If you rebuilt the server or the IP moved to a new one, delete the old entry with ssh-keygen -R and connect again, comparing the new fingerprint with the one your host shows.

Causes and how to fix them

1. You reinstalled or rebuilt the server

A new operating system installation generates new SSH keys, so the fingerprint changes. This is the most common cause. Remove the saved entry for that address:
ssh-keygen -R 203.0.113.24
Then connect again; SSH asks you to accept the new fingerprint. To be sure it's your server, read the fingerprint from the host's web console and compare:
ssh-keygen -lf /etc/ssh/ssh_host_ed25519_key.pub

2. The address now belongs to another server

If you deleted a server and created another that got the same IP, or your host moved the address, the fingerprint is naturally different. The fix is the same as above.

3. Something is intercepting the connection

This is what the warning is for, but it is rare. If you haven't changed anything and the server is still the same, don't connect: compare the fingerprint through the host's web console first, and from another network. A mismatch from a different network points to something between you and the server.

Using Nullsify?

Nullsify adds servers by connecting from its own servers, not from your computer, so this warning only concerns the terminal on your own machine and doesn't affect adding a server.
Free for 1 server. Bring your own VPS — Nullsify configures WireGuard, AmneziaWG or VLESS on it for you.

Related problems

Read more