REMOTE HOST IDENTIFICATION HAS CHANGED Linux Origin: Platform & cloud OSI layer 7 · Application Last updated 15 Oct 2026

WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! (ssh host key changed)

The server’s SSH host key differs from the one saved in ~/.ssh/known_hosts — usually because the server was rebuilt or the IP was reused.

Exact message you may see REMOTE HOST IDENTIFICATION HAS CHANGEDIT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTYOffending ECDSA key inNo ED25519 host key is known for
Seen on: Linux

Meaning

SSH protects you from man-in-the-middle attacks by pinning host keys. Rebuilt VMs, reused cloud IPs, or reinstalling the OS change the key. If you didn’t expect a change, verify with the server owner before trusting it.

Common causes

  • Server reinstalled/rebuilt or new VM on the same IP
  • Load balancer/DNS pointing to a different host
  • Genuine man-in-the-middle (rare — verify)

⚡ Quick fix

  1. Confirm the change is expected
  2. Remove the old key: ssh-keygen -R host
  3. Reconnect and accept the new fingerprint (verify it out of band)

Detailed fix by platform

Shell

  1. bash
    ssh-keygen -R 203.0.113.10
    ssh-keygen -R example.com
    ssh user@example.com

How to diagnose

  1. Expected — Was the server rebuilt?
  2. Fingerprint — Compare with the server console (ssh-keygen -lf /etc/ssh/ssh_host_ed25519_key.pub)

🔧 Still not fixed?

Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:

Where this error sits

Origin: Platform & cloud. Errors that are often confused with or caused by this one (click to open):

1005 — Cloudflare Error 1005: Access denied — The owner of this website has banned the autonomous system number (ASN) your IP address is in (Cloudflare)10051006 — Cloudflare Error 1006 / 1007 / 1008: Access denied — Your IP address has been banned (Cloudflare)100615281 — SQL Server Msg 15281: SQL Server blocked access to procedure 'sys.xp_cmdshell' (component 'xp_cmdshell' turned off) (SQL)15281403 Forbidden wp-admin — WordPress: 403 Forbidden on wp-admin, wp-login.php or admin-ajax.php (WordPress)403 Forbidden wp-adminAADSTS50053 — AADSTS50053: Your account is locked (Smart Lockout) / sign-in blocked due to suspicious activity (Azure)AADSTS50053ActiveModel::ForbiddenAttributesError (strong parameters) — Rails: ActiveModel::ForbiddenAttributesError (Ruby / Rails)ActiveModel::Forbidde…antiforgery token could not be decrypted — ASP.NET Core: The antiforgery token could not be decrypted / The required antiforgery cookie is not present (400 Bad Request) (.NET)antiforgery token cou…App Check — Firebase App Check: requests rejected (403 / app-check-token-is-invalid / attestation failed) (Google Cloud / Firebase)App CheckREMOTE HO…

Explore the map of this error Full error map →

🧠 Still stuck? Analyze your error

Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.

💬 What worked for others

No tips yet — did something else fix this for you?

Share what worked for you

Tips are checked by an editor before they appear. Links are removed.