[PLUG] Restoring ssh-agent with passphrase

Cryptomonkeys.org louisk at cryptomonkeys.org
Thu Nov 15 05:29:13 UTC 2018


On Nov 14, 2018, at 3:47 PM, Rich Shepard <rshepard at appl-ecosys.com> wrote:
> 
> On Wed, 14 Nov 2018, Louis Kowolowski wrote:
> 
>> man ssh-add(1)
>> 
>> -D      Deletes all identities from the agent.
>> -l        Lists fingerprints of all identities currently represented by the agent.
>> 
>> You can delete all identities, list them, to make sure there aren't any in
>> the agent, and then re-add them with: ssh-add <path-to-key-file> will add
>> your key
> 
>  Thanks, Louis.
> 
>  Would the path be ~/.ssh/id_ed25519.pub?
> 
By default, your SSH keys are located in ~/.ssh. The public key would not be added to the agent. The private key would be added to the agent. You probably want ~/.ssh/id_ed25519.
If you have multiple keys, you can add them all (ssh-add /path/to/private/keys/*) - yes, glob on the end to grab them all at once
Of note, SSH will only use the first 3 keys by default. If you have more than 3 keys, I suggest you look at specifying a key in your ~/.ssh/config for the specific host(s).

--
Louis Kowolowski                                louisk at cryptomonkeys.org <mailto:louisk at cryptomonkeys.org>
Cryptomonkeys:                                   http://www.cryptomonkeys.com/ <http://www.cryptomonkeys.com/>

Making life more interesting for people since 1977




More information about the PLUG mailing list