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

[user@hostname ~]$ ssh root@user
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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 your MyKinsta dashboard.

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

Mac

  1. Open up terminal and edit the following file with nano text editor.
nano ~/.ssh/known_hosts
  1. Remove all entries that start with your Kinsta IP address (found within your MyKinsta dashboard
  2. Then save the document (Ctrl+x)

Windows

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

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

    regedit

    Windows regedit

  2. Browse to the following directory:
    HKEY_CURRENT_USER\SoftWare\SimonTatham\PuTTY\SshHostKeys

    sshhostkeys

    SshHostKeys

  3. Remove all entries that end with your Kinsta IP address (found within your MyKinsta dashboard
15
Shares