Clear SSH Key File

A simple way to clear the contents of ssh key file without deleting the file:

echo -n > /home/user/.ssh/known_hosts

Leave a Reply