Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
23
rated 0 times [  23] [ 0]  / answers: 1 / hits: 77807  / 2 Years ago, fri, january 14, 2022, 9:40:00

On client, after I do ssh-add to add my private key everything works fine, ssh-add -l lists key and I can connect to hosts that have corresponding public key, but nothing changes in .ssh dir as it supposed to.So my question is: How can I locate dir in which are stored private keys added by ssh-add ?


More From » 14.04

 Answers
1

ssh-add doesn't store anything locally or remotely on disk. This command loads your private key, asking once for its password, into the SSH Agent that was previously started.



The SSH Agent holds the private keys in memory only. When you launch the SSH client, it uses the private key from the SSH Agent, without asking for the private key password again, to authenticate against the target server.



The .ssh directory will contains (in the home directory of any user) :




  • authorized_keys : list of public keys allowed to be used to connect to this server

  • config : optional file with configuration parameters for the SSH client

  • the public and private keys you've generated on this host for this user.

  • known_hosts : maintain a list of hosts to which you already connected together with a hash to detect if the host key has changed since the last time.


[#23585] Sunday, January 16, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
lintical

Total Points: 344
Total Questions: 122
Total Answers: 106

Location: Sint Maarten
Member since Mon, Oct 12, 2020
4 Years ago
;