Delete SSH keys in ubuntu 14.04

Posted December 9, 2014 20.8k views

How to clear / delete ssh keys in ubuntu 14.04

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
2 answers

Your ssh keys are stored in ~/.ssh/authorized_keys and you can remove them by deleting the file.

  • I deleted the file.. but still receive this error in PuTTY;
    “Network error: Connection timed out” …
    what to do?

  • That sounds like your ssh service is not running or is prevented from listening on port 22. I would recommend logging in via the console in the control panel to check on your ssh service and ensure that you have connectivity on your public IP. If you run into problems our support team should be able to help you out. You can open a ticket here.