≡ Menu

Mac OS X: Delete SSH Keys Using Terminal Command Line

I have aws.sg.pub and ibm.sl.pub file for ssh login. How do I delete ssh key file called ~/.ssh/aws.sg.pub 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:

rm fileName


rm $HOME/.ssh/file.pub


rm ~/.ssh/file.pub

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

rm ~/.ssh/aws.sg.pub

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

Share this tutorial on:

{ 0 comments… add one }

Leave a Comment

   Tagged with: ,