Mac OS X: Delete SSH Keys Using Terminal Command Line

by on April 18, 2012 · 0 comments· LAST UPDATED November 18, 2013

in , ,

I have and file for ssh login. How do I delete ssh key file called ~/.ssh/ using the terminal on Apple Mac OS X?

You can use rm command to delete the file from your local Mac based system. The syntax is:
Tutorial details
DifficultyEasy (rss)
Root privilegesNo
Estimated completion time1m

rm fileName


rm $HOME/.ssh/


rm ~/.ssh/

In this example, delete a file called ~/.ssh/ using the rm command

rm ~/.ssh/

See rm(1) command man page for more information.

Tweet itFacebook itG+ itDownload PDF versionFound an error/typo on this page?

{ 0 comments… add one now }

Leave a Comment

Tagged as: ,

Previous Faq:

Next Faq: