summaryrefslogtreecommitdiff
path: root/doc/ssh
diff options
context:
space:
mode:
authorHannes Rosenögger <Hannes.Rosenoegger@bva.bund.de>2015-01-22 20:27:11 +0100
committerHannes Rosenögger <Hannes.Rosenoegger@bva.bund.de>2015-01-22 20:27:11 +0100
commitabbb29b30c55fb44edd4f1eb0b87a8ce4a72a05d (patch)
treed5dbd8398db9914861e93b5a680a32a56508e468 /doc/ssh
parent1050f5230eec21cf47d5af262a1b3e62c07fec5d (diff)
downloadgitlab-ce-abbb29b30c55fb44edd4f1eb0b87a8ce4a72a05d.tar.gz
Update ssh doc with commands to copy the public key to the clipboard
Diffstat (limited to 'doc/ssh')
-rw-r--r--doc/ssh/ssh.md19
1 files changed, 18 insertions, 1 deletions
diff --git a/doc/ssh/ssh.md b/doc/ssh/ssh.md
index d466c1bde72..f9ee627f1f5 100644
--- a/doc/ssh/ssh.md
+++ b/doc/ssh/ssh.md
@@ -18,4 +18,21 @@ Use the code below to show your public key.
cat ~/.ssh/id_rsa.pub
```
-Copy-paste the key to the 'My SSH Keys' section under the 'SSH' tab in your user profile. Please copy the complete key starting with `ssh-` and ending with your username and host.
+Copy-paste the key to the 'My SSH Keys' section under the 'SSH' tab in your user profile. Please copy the complete key starting with `ssh-` and ending with your username and host.
+
+Use code below to copy your public key to the clipboard. Depending on your OS you'll need to use a different command:
+
+**Windows:**
+```bash
+clip < ~/.ssh/id_rsa.pub
+```
+
+**Mac:**
+```bash
+pbcopy < ~/.ssh/id_rsa.pub
+```
+
+**Linux (requires xclip):**
+```bash
+xclip -sel clip < ~/.ssh/id_rsa.pub
+```