How To Remove Host From Known_Hosts File – Ubuntu

Wednesday, 5. December 2012

If you ever wanted to update your local server known_hosts file this snippet may be what you just need!

Start your terminal window and whack this script and and press enter.

ssh-keygen -f "/home/account/.ssh/known_hosts" -R IP_ADDRESS_OF_HOST

Leave a Reply

You must be logged in to post a comment.