OverviewAfter performing a server rebuild, you might experience a host identification error in your SSH client:
This occurs because your device is attempting to use an old host key to connect to the server. To fix this, you will just need to disable the old key in your host files.
- Read through the error until you find the offending file path and line number. In this example, the file location is /Users/USERNAME/.ssh/known_hosts and the line number is line 36.
- On your computer, navigate to the file location. Then open the file with your preferred text editor. In this example, we used the free program, Visual Studio Code.
- Locate offending line (in this example line 36) and add a hash sign (#) to the beginning. This will disable the old host key.
- Save the file.
- You should now be able to SSH into your server!