Skip to content

Commit

Permalink
ssh-add: add page (tldr-pages#1551)
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrl authored Oct 18, 2017
2 parents fb91a18 + 7c57e2b commit 732dabf
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
24 changes: 24 additions & 0 deletions pages/linux/ssh-add.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# 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.
- 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`
28 changes: 28 additions & 0 deletions pages/osx/ssh-add.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# 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.
- 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}}`

0 comments on commit 732dabf

Please sign in to comment.