Quick Bash Script that will clear just one IP from ssh known_hosts file
- Clone this repo
- Either keep it in cloned folder or copy script anywhere you'd like
- I copied mine in my
~/.ssh/
directory
- I copied mine in my
- Whenever you get the
WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!
error when trying to ssh into a box - Run
./clear-ip.sh 127.0.0.1
and replace127.0.0.1
with the IP address that you're trying to clear