How do I get openssh to save my ssh identity permanently?

Posted by Alliswell on Super User See other posts from Super User or by Alliswell
Published on 2013-06-24T18:46:56Z Indexed on 2013/06/24 22:24 UTC
Read the original article Hit count: 162

Filed under:
|
|

How do I change it to save my identity permanently? During my login session after I have entered:

$ ssh-add

Then identity is saved and I can connect via ssh without getting the dreaded:

Enter passphrase for key

Once I logout and login back-in I get the following when running:

$ ssh-add -L

The agent has no identities.

$ ssh <hostname>

Enter passphrase for key '/home/user/.ssh/id_rsa':

Stackoverflow has the following solution, yet I do not understand the reference to in the config file:

IdentityFile ~/.ssh/id_rsa_buhlServer

Specifically I do not understand what I would put on the identity file. Would I put the above word for word?

Or just add my file:

IdentityFile ~/.ssh/id_rsa

StackOverflow solution

© Super User or respective owner

Related posts about linux

Related posts about ubuntu