commandlinefu.com is the place to record those command-line gems that you return to again and again.
You can sign-in using OpenID credentials, or register a traditional username and password.
Subscribe to the feed for:
In this case it's better do to use the dedicated tool
There are 5 alternatives - vote for the best!
deletes line 3 in known_hosts text file
This is the quick and dirty alternative ;)
The whole file will be emptied, this is equal to /dev/null > ~/.ssh/known_hosts
I have this as a file called deletekey in my ~/bin.
Makes life a little easier.
If you can do better, submit your command here.
You must be signed in to comment.