Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-01-24 06:26:16 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-01-24 06:26:16 +0300
commitbdc78c96dbe8a2e9d39357223a4e0aed57b38044 (patch)
treeb259d729eb81f07cf3c5a9cca57286efbd70836c /doc
parent630ff5744b58923890a269762bf3a3c9b1f6663f (diff)
parentabbb29b30c55fb44edd4f1eb0b87a8ce4a72a05d (diff)
Merge branch 'ssh_doc' into 'master'
Documentation on how to copy your ssh key to clipboard with the console This MR just adds some documentation in case people want to use the bash to copy their public ssh key to the clipboard. See merge request !311
Diffstat (limited to 'doc')
-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
+```