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