From 52f0987681b5534fbea9b601045307d9be315360 Mon Sep 17 00:00:00 2001 From: mashehu Date: Mon, 16 Oct 2017 18:17:15 +0200 Subject: [PATCH] ssh-add: add page (now for real) --- pages/common/ssh-add.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 pages/common/ssh-add.md diff --git a/pages/common/ssh-add.md b/pages/common/ssh-add.md new file mode 100644 index 000000000..8a1767789 --- /dev/null +++ b/pages/common/ssh-add.md @@ -0,0 +1,23 @@ +# ssh-add + +> Manage loaded RSA or DSA keys in the ssh-agent. + +- Add a new 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` + +- For MacOS: Add a key to the ssh-agent and the keychain: + +`ssh-add -K {{path/to/private_key}}`