2017-10-16 19:17:15 +03:00
|
|
|
# ssh-add
|
|
|
|
|
2017-10-17 18:21:51 +03:00
|
|
|
> Manage loaded ssh keys in the ssh-agent.
|
|
|
|
> Ensure that ssh-agent is up and running for the keys to be loaded in it.
|
2017-10-16 19:17:15 +03:00
|
|
|
|
2017-10-18 10:39:17 +03:00
|
|
|
- Add the default ssh keys in "~/.ssh" to the ssh-agent:
|
2017-10-17 18:34:37 +03:00
|
|
|
|
2017-10-17 18:21:51 +03:00
|
|
|
`ssh-add`
|
2017-10-16 19:17:15 +03:00
|
|
|
|
2017-10-18 10:13:09 +03:00
|
|
|
- Add a specific key to the ssh-agent:
|
2017-10-17 18:34:37 +03:00
|
|
|
|
2017-10-16 19:17:15 +03:00
|
|
|
`ssh-add {{path/to/private_key}}`
|
|
|
|
|
|
|
|
- List fingerprints of currently loaded keys:
|
|
|
|
|
|
|
|
`ssh-add -l`
|
|
|
|
|
|
|
|
- Delete a key from the ssh-agent:
|
|
|
|
|
|
|
|
`ssh-add -d {{path/to/private_key}}`
|
|
|
|
|
|
|
|
- Delete all currently loaded keys from the ssh-agent:
|
|
|
|
|
|
|
|
`ssh-add -D`
|