Recommended Free Tools
iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more
“Host key verification failed” means SSH received a server identity that does not match the one it previously recorded for that host. The change may be legitimate, but it could also mean you are connecting to the wrong server or that the connection is being intercepted. Confirm the expected fingerprint with the server administrator or the provider’s official documentation before changing known_hosts or accepting a new key. If you cannot verify the identity, do not connect.
What the SSH error means
On an SSH connection, the server presents a host key to identify itself. Your SSH client checks that key against the identity it previously saved for the host. If the keys do not match, SSH stops the connection with this warning as a security precaution. Git and other applications can show the same error when they use SSH to connect.
A mismatch alone does not explain why the key changed. The server may have been rebuilt or its SSH keys rotated, or the connection may be reaching a different endpoint. Only the server owner or a trusted official source can confirm which key is expected. GitHub’s guidance on this error likewise advises checking for an official explanation and not connecting if you cannot find a trustworthy source for the key.
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
Host-key verification is about the server’s identity, not your user credentials. Verifying the server does not itself authenticate you to a Git account or grant repository access.
#1 Best Overall
- POWERFUL SECURITY KEY: The Security Key C NFC is the essential physical passkey for protecting your digital life from phishing attacks. It ensures only you can access your accounts.
- WORKS WITH 1000+ ACCOUNTS: Compatible with Google, Microsoft, and Apple. A single Security Key C NFC secures 100 of your favorite accounts, including email, password managers, and more.
- FAST & CONVENIENT LOGIN: Plug in your Security Key C NFC via USB-C and tap it, or tap it against your phone (NFC) to authenticate. No batteries, no internet connection, and no extra fees required.
- TRUSTED PASSKEY TECHNOLOGY: Uses the latest passkey standards (FIDO2/WebAuthn & FIDO U2F) but does not support One-Time Passwords. For complex needs, check out the YubiKey 5 Series.
- BUILT TO LAST: Made from tough, waterproof, and crush-resistant materials. Manufactured in Sweden and programmed in the USA with the highest security standards.
How to check the warning before changing anything
- Read the complete warning. Note the hostname, port if shown, key algorithm, presented fingerprint, and any line pointing to an offending record in
known_hosts. The fingerprint is the value you need to compare with a trusted source. - Confirm the intended endpoint. Check the hostname and port in the command or application configuration. If you used a short alias, review the SSH configuration that maps it to a hostname, port, or other connection settings.
- Find the expected fingerprint through an authoritative channel. Ask the server administrator or consult the provider’s official key page or change announcement. Do not rely on an unverified message or on a fingerprint copied from an unrelated host.
- Compare the details. The hostname and port must refer to the intended server, and the presented key’s algorithm and fingerprint must agree with the authoritative information. A notice that a key changed is useful only if it comes from a source responsible for that server.
- Stop if you cannot confirm the match. Contact the organization that operates the server rather than deleting the record or bypassing the check.
For GitHub: compare against its official fingerprints
If the intended endpoint is GitHub, compare the fingerprint in the warning with GitHub’s current SSH key fingerprints. GitHub publishes fingerprints for its RSA, ECDSA, Ed25519, and DSA host keys. The values can change, so use the official page for the comparison rather than treating a copied value as permanent. GitHub labels its DSA fingerprint “closing down.”
GitHub’s post about its RSA host-key update documents a real key rotation and uses ssh-keygen -R github.com to remove the previous record. That is an example of a confirmed provider change, not proof that a warning for another hostname—or an unexplained warning for GitHub—is safe to ignore. See GitHub’s RSA SSH host-key update announcement.
Rank #2
- POWERFUL SECURITY KEY: The YubiKey 5C NFC is the most versatile physical passkey, protecting your digital life from phishing attacks. It ensures only you can access your accounts
- WORKS WITH 1000+ ACCOUNTS: Compatible with popular accounts like Google, Microsoft, and Apple. A single YubiKey 5C NFC secures 100+ of your favorite accounts, including email, password managers, and more
- FAST & CONVENIENT LOGIN: Plug in your YubiKey 5C NFC via USB and tap it, or tap it against your phone (NFC), to authenticate. No batteries, no internet connection, and no extra fees required
- MOST SECURE PASSKEY: Supports FIDO2/WebAuthn, FIDO U2F, Yubico OTP, OATH-TOTP/HOTP, Smart card (PIV), and OpenPGP. That means it’s versatile, working almost anywhere you need it
- PRIMARY & SPARE KEYS: Just like having a spare house key, we recommend buying two YubiKeys - one for daily use and one as a spare. That way you’ll never get locked out of your accounts
How to update the saved key after verifying it
Proceed only after the administrator or provider confirms that the fingerprint presented by the intended endpoint is valid. Remove or replace only the record for that host; do not clear all saved host keys or disable host checking.
Quick Recap
Best Value
- Security Key : Protect your online accounts against unauthorized access by using FIDO2 and U2F authentication with T110. It's the world's most protective security key that works with windows, Mac OS, Linux as well as Chrome, Firefox, Edge and many other major browsers.
- Certified with the new FIDO2 standard, T110 provides the benefit of fast login and strong protection against phishing, account takeover as well as many other online attactks.
- Works with : Bank of America, Github, Google, Microsoft, DUO, Twitter, Facebook, Dropbox, Apple, ebay, BINANCE, mor and more.
- Fits USB-A port : Insert the T110 security key into the USB-A port of each service and log in conveniently with one touch
- For the driver download and user guide, please visit TrustKey Solutions Home support page.
Rank #4
- POWERFUL SECURITY KEY: The Security Key NFC is the essential physical passkey for protecting your digital life from phishing attacks. It ensures only you can access your accounts.
- WORKS WITH 1000+ ACCOUNTS: Compatible with Google, Microsoft, and Apple. A single Security Key NFC secures 100 of your favorite accounts, including email, password managers, and more.
- FAST & CONVENIENT LOGIN: Plug in your Security Key NFC via USB-A and tap it, or tap it against your phone (NFC) to authenticate. No batteries, no internet connection, and no extra fees required.
- TRUSTED PASSKEY TECHNOLOGY: Uses the latest passkey standards (FIDO2/WebAuthn & FIDO U2F) but does not support One-Time Passwords. For complex needs, check out the YubiKey 5 Series.
- BUILT TO LAST: Made from tough, waterproof, and crush-resistant materials. Manufactured in Sweden and programmed in the USA with the highest security standards.
Rank #3
- POWERFUL SECURITY KEY: The YubiKey 5 NFC is the most versatile physical passkey, protecting your digital life from phishing attacks. It ensures only you can access your accounts
- WORKS WITH 1000+ ACCOUNTS: Compatible with popular accounts like Google, Microsoft, and Apple. A single YubiKey 5 NFC secures 100+ of your favorite accounts, including email, password managers, and more
- FAST & CONVENIENT LOGIN: Plug in your YubiKey 5 NFC via USB and tap it, or tap it against your phone (NFC), to authenticate. No batteries, no internet connection, and no extra fees required
- MOST SECURE PASSKEY: Supports FIDO2/WebAuthn, FIDO U2F, Yubico OTP, OATH-TOTP/HOTP, Smart card (PIV), and OpenPGP. That means it’s versatile, working almost anywhere you need it
- PRIMARY & SPARE KEYS: Just like having a spare house key, we recommend buying two YubiKeys - one for daily use and one as a spare. That way you’ll never get locked out of your accounts
- Identify the affected host record. Use the hostname and port from the warning, and check which user or system
known_hostsfile SSH is using if the warning identifies a file and line. - Remove the stale record or replace it with the verified one. For GitHub, its documented RSA-rotation example uses
ssh-keygen -R github.com. For other hosts, use the exact host or host-and-port entry reported by SSH; do not substitute the GitHub example. - Reconnect to the same endpoint. When prompted, compare the newly presented fingerprint with the authoritative value again. Accept the key only if it matches.
If the warning continues after the key is confirmed
- A different host or port is being used. Check the command, application settings, SSH aliases, and custom port configuration against the administrator’s intended endpoint.
- SSH is reading another host-key file. A different user account or system-level SSH configuration may point to a separate
known_hostsfile. Check the file named in the warning and ask the administrator which configuration applies. - The server has multiple legitimate keys. Compare the algorithm and fingerprint for the specific key shown in the warning with the provider’s published fingerprints or the administrator’s confirmation.
- The endpoint or key still cannot be confirmed. Stop and contact the server owner. Do not turn off host-key verification to make the connection succeed.
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

