Having issues connecting via SSH or SFTP? If you’re getting an error like the one below, this usually happens because IP addresses or the SSH key fingerprint have changed (often due to a server update), and the old one is still stored in your known_hosts file, which is used for SSH and SFTP connections.

[[email protected] ~]$ ssh [email protected]
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
xx:xx:xx.
Please contact your system administrator.
Add correct host key in /home/hostname /.ssh/known_hosts to get rid of this message.
Offending RSA key in /var/lib/sss/pubconf/known_hosts:4
RSA host key for user has changed and you have requested strict checking.
Host key verification failed.

Can’t Connect via SSH or SFTP – Delete SSH known_hosts

If you are having trouble connecting, first ensure you are using the correct password. You can always change your SFTP and or SSH password from within MyKinsta.

If you are still having issues, follow the directions below to delete entries from your known_hosts file.

Mac or Linux

  1. Open up Terminal and edit the following file with the nano text editor.
nano ~/.ssh/known_hosts
  1. Remove all entries that start with your Kinsta IP address (found on your site’s Info tab in MyKinsta).
  2. Then save the document (Ctrl+x).

Windows

If you are on Windows, it also has a similar known_hosts file, but the credentials and IP are stored in the registry.

  1. Launch regedit from your start menu. The example below is using Windows 10.

    regedit
    Windows regedit

  2. Browse to the following directory:
    HKEY_CURRENT_USERSoftWareSimonTathamPuTTYSshHostKeys

    sshhostkeys
    SshHostKeys

  3. Remove all entries that end with your Kinsta IP address (found on your site’s Info tab in MyKinsta).