Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to find Private Key Location

I'm trying to access a server using Filezilla and was told I needed to use authentication with public/private keys. I created the keys using the Terminal, but cannot find them on my computer.

This is where the key is located: (/Users/ed/.ssh/id_rsa)

I checked in my home directory, but the folder .ssh is nowhere to be found. Is there a secret place .ssh folder is stored and how can I access it?

My Mac runs on OS X ElCaptain. I would really appreciate any help.

like image 359
I Like Avatar asked Aug 22 '16 18:08

I Like


People also ask

Where are private public keys stored?

Keys and certificates are stored in keystores and truststores. Private keys and personal certificates are stored in keystores. Public keys and CA certificates are stored in truststores. A truststore is a keystore that by convention contains only trusted keys and certificates.


2 Answers

Files and folders starting with a period (.ssh) are hidden by default. To find private/public key, run this commands:

ls -a

In your case, run this commands to find the ssh keys:

cd ~/.ssh

then:

ls -a

Now you should see the keys like this:

.       ..      id_rsa      id_rsa.pub

If the keys are not there then definitely you need to create the key by ssh-keygen command.

like image 166
Munna Khan Avatar answered Oct 18 '22 03:10

Munna Khan


(MacOS) I my case, .ssh folder was hidden so I went to folder route (example /Users/syed.dastagir)and pressed Command + Shift + . (full stop/period) and it showed me .ssh folder.

When you no longer want to see the hidden folders just press Command + Shift + . again.

like image 5
syed dastagir Avatar answered Oct 18 '22 03:10

syed dastagir