# SSH says the host key has changed

> Check the host key fingerprint, then remove the old entry from known_hosts and connect again.

Source: https://docs.wpwaterfall.com/troubleshooting-ssh-known-hosts

SSH stores each server's host key in `known_hosts` on your computer. When the key differs, SSH stops with "WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!". This is normal after a restore, a clone, or a server move. It can also mean someone is intercepting the connection, so check before you accept the new key.

## How do I check the new key?

1. Open the site, then **Info**. Copy the host and port exactly as shown. A typo sends you to a different machine, which gives the same warning.
2. Compare the **Host key fingerprint** under the SSH command on the same page with the one SSH prints. It starts with `SHA256:`. If it says **Not known yet**, the server has not reported it, so skip this step and ask support in the next paragraph.
3. Open **Activity** for the site. A restore, move, or rebuild in the last few days explains a new key.

If you cannot tell whether the change is expected, do not accept the key. Message Nami from the chat button and ask us to confirm it.

## How do I connect again?

Remove the old line for the WP Waterfall host from `known_hosts`, then connect and accept the new key. On Windows the file is usually `C:\Users\<you>\.ssh\known_hosts`. If your SFTP client keeps its own list of host keys, remove the entry there too.

A blocked address gets a refusal, not a key warning. If you set allowed IP addresses, see [SFTP connection refused](https://docs.wpwaterfall.com/troubleshooting-sftp-refused).

## Related

- [SSH and SFTP](https://docs.wpwaterfall.com/ssh-and-sftp)
- [Troubleshooting: SFTP refused](https://docs.wpwaterfall.com/troubleshooting-sftp-refused)
- [Activity](https://docs.wpwaterfall.com/site-activity)
- [Environments](https://docs.wpwaterfall.com/environments)
