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 8a1767789b..f8ff9bfefd 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 0000000000..116b49366e --- /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}}`