How do I get openssh to save my ssh identity permanently?
- by Alliswell
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