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 Share this:Click to share on Twitter (Opens in new window)Click to share on Facebook (Opens in new window) Like this:Like Loading... Related