mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-23 00:51:29 +00:00
Update cheatsheets
This commit is contained in:
34
ssh-add
Normal file
34
ssh-add
Normal file
@@ -0,0 +1,34 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# ssh-add
|
||||
|
||||
> Manage loaded SSH keys in the `ssh-agent`.
|
||||
> Ensure that `ssh-agent` is up and running for the keys to be loaded in it.
|
||||
> More information: <https://man.openbsd.org/ssh-add>.
|
||||
|
||||
- Add the default ssh keys in `~/.ssh` to the ssh-agent:
|
||||
|
||||
`ssh-add`
|
||||
|
||||
- Add a specific key to the ssh-agent:
|
||||
|
||||
`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`
|
||||
|
||||
- Add a key to the ssh-agent and the keychain:
|
||||
|
||||
`ssh-add -K {{path/to/private_key}}`
|
||||
Reference in New Issue
Block a user