From 4e85d115866d1998277b7888ee8f4d1fc08d087e Mon Sep 17 00:00:00 2001 From: mashehu Date: Mon, 16 Oct 2017 17:34:33 +0200 Subject: [PATCH 1/8] ssh-add: add page --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index b87156185..849e3dcc9 100644 --- a/package.json +++ b/package.json @@ -4,9 +4,9 @@ "description": "Simplified, community-driven man pages", "dependencies": { "glob": "7.0.0", + "husky": "0.11.3", "markdownlint-cli": "0.1.0", - "tldr-lint": "~0.0.7", - "husky": "0.11.3" + "tldr-lint": "0.0.7" }, "scripts": { "precommit": "npm test", From 52f0987681b5534fbea9b601045307d9be315360 Mon Sep 17 00:00:00 2001 From: mashehu Date: Mon, 16 Oct 2017 18:17:15 +0200 Subject: [PATCH 2/8] 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}}` From 04cb5ca0438f475ea9942b65646fb3e0476d0ffd Mon Sep 17 00:00:00 2001 From: mashehu Date: Tue, 17 Oct 2017 17:21:51 +0200 Subject: [PATCH 3/8] ssh-add: added simplest command and split into platforms --- pages/{common => linux}/ssh-add.md | 11 +++++------ pages/osx/ssh-add.md | 26 ++++++++++++++++++++++++++ 2 files changed, 31 insertions(+), 6 deletions(-) rename pages/{common => linux}/ssh-add.md (51%) create mode 100644 pages/osx/ssh-add.md diff --git a/pages/common/ssh-add.md b/pages/linux/ssh-add.md similarity index 51% rename from pages/common/ssh-add.md rename to pages/linux/ssh-add.md index 8a1767789..f8ff9bfef 100644 --- a/pages/common/ssh-add.md +++ b/pages/linux/ssh-add.md @@ -1,9 +1,12 @@ # ssh-add -> Manage loaded RSA or DSA keys in the ssh-agent. +> 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 a new key to the ssh-agent: +- Add the standard ssh key, e.g. {{id_rsa}}, to the ssh-agent: +`ssh-add` +- Add a specific new key to the ssh-agent: `ssh-add {{path/to/private_key}}` - List fingerprints of currently loaded keys: @@ -17,7 +20,3 @@ - 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}}` diff --git a/pages/osx/ssh-add.md b/pages/osx/ssh-add.md new file mode 100644 index 000000000..116b49366 --- /dev/null +++ b/pages/osx/ssh-add.md @@ -0,0 +1,26 @@ +# 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 standard ssh key, e.g. {{id_rsa}}, to the ssh-agent: +`ssh-add` + +- Add a specific 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` + +- Add a key to the ssh-agent and the keychain: + +`ssh-add -K {{path/to/private_key}}` From e8eb122cf57f7da15bdf2525d337d330577b9fb5 Mon Sep 17 00:00:00 2001 From: mashehu Date: Tue, 17 Oct 2017 17:29:11 +0200 Subject: [PATCH 4/8] ssh-add: fix for altered package.json --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 849e3dcc9..b87156185 100644 --- a/package.json +++ b/package.json @@ -4,9 +4,9 @@ "description": "Simplified, community-driven man pages", "dependencies": { "glob": "7.0.0", - "husky": "0.11.3", "markdownlint-cli": "0.1.0", - "tldr-lint": "0.0.7" + "tldr-lint": "~0.0.7", + "husky": "0.11.3" }, "scripts": { "precommit": "npm test", From 26062667b90b2de3266e711f5df71a96d7a5f5b3 Mon Sep 17 00:00:00 2001 From: mashehu Date: Tue, 17 Oct 2017 17:34:37 +0200 Subject: [PATCH 5/8] ssh-add: formating corrections --- pages/linux/ssh-add.md | 2 ++ pages/osx/ssh-add.md | 2 ++ 2 files changed, 4 insertions(+) diff --git a/pages/linux/ssh-add.md b/pages/linux/ssh-add.md index f8ff9bfef..92fc05e23 100644 --- a/pages/linux/ssh-add.md +++ b/pages/linux/ssh-add.md @@ -4,9 +4,11 @@ > Ensure that ssh-agent is up and running for the keys to be loaded in it. - Add the standard ssh key, e.g. {{id_rsa}}, to the ssh-agent: + `ssh-add` - Add a specific new key to the ssh-agent: + `ssh-add {{path/to/private_key}}` - List fingerprints of currently loaded keys: diff --git a/pages/osx/ssh-add.md b/pages/osx/ssh-add.md index 116b49366..344d6eea9 100644 --- a/pages/osx/ssh-add.md +++ b/pages/osx/ssh-add.md @@ -4,9 +4,11 @@ > Ensure that ssh-agent is up and running for the keys to be loaded in it. - Add the standard ssh key, e.g. {{id_rsa}}, to the ssh-agent: + `ssh-add` - Add a specific new key to the ssh-agent: + `ssh-add {{path/to/private_key}}` - List fingerprints of currently loaded keys: From 8f1903a903f08db2613ecb20e6f0a2f4e0115b8b Mon Sep 17 00:00:00 2001 From: mashehu Date: Wed, 18 Oct 2017 09:13:09 +0200 Subject: [PATCH 6/8] ssh-add: updated descriptions --- pages/linux/ssh-add.md | 4 ++-- pages/osx/ssh-add.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pages/linux/ssh-add.md b/pages/linux/ssh-add.md index 92fc05e23..a3c3e809b 100644 --- a/pages/linux/ssh-add.md +++ b/pages/linux/ssh-add.md @@ -3,11 +3,11 @@ > 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 standard ssh key, e.g. {{id_rsa}}, to the ssh-agent: +- Add the default ssh keys in {{~/.ssh}} to the ssh-agent: `ssh-add` -- Add a specific new key to the ssh-agent: +- Add a specific key to the ssh-agent: `ssh-add {{path/to/private_key}}` diff --git a/pages/osx/ssh-add.md b/pages/osx/ssh-add.md index 344d6eea9..ee9cdfa75 100644 --- a/pages/osx/ssh-add.md +++ b/pages/osx/ssh-add.md @@ -3,11 +3,11 @@ > 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 standard ssh key, e.g. {{id_rsa}}, to the ssh-agent: +- Add the default ssh keys in {{~/.ssh}} to the ssh-agent: `ssh-add` -- Add a specific new key to the ssh-agent: +- Add a specific key to the ssh-agent: `ssh-add {{path/to/private_key}}` From 0aec455bcf6ca85e4bdeae60fb535acf0923f18f Mon Sep 17 00:00:00 2001 From: Agniva De Sarker Date: Wed, 18 Oct 2017 13:09:17 +0530 Subject: [PATCH 7/8] use quotes instead of tokens --- pages/linux/ssh-add.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/linux/ssh-add.md b/pages/linux/ssh-add.md index a3c3e809b..134a17ddb 100644 --- a/pages/linux/ssh-add.md +++ b/pages/linux/ssh-add.md @@ -3,7 +3,7 @@ > 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: +- Add the default ssh keys in "~/.ssh" to the ssh-agent: `ssh-add` From 7c57e2b0523b1a544efa6c693d8b21766debbed2 Mon Sep 17 00:00:00 2001 From: Agniva De Sarker Date: Wed, 18 Oct 2017 13:09:42 +0530 Subject: [PATCH 8/8] ssh-add: use quotes instead of tokens --- pages/osx/ssh-add.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/osx/ssh-add.md b/pages/osx/ssh-add.md index ee9cdfa75..f59e2546a 100644 --- a/pages/osx/ssh-add.md +++ b/pages/osx/ssh-add.md @@ -3,7 +3,7 @@ > 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: +- Add the default ssh keys in "~/.ssh" to the ssh-agent: `ssh-add`