summaryrefslogtreecommitdiff
path: root/doc/ssh
diff options
context:
space:
mode:
authorAaron Power <theaaronepower@gmail.com>2016-02-03 23:29:17 +0000
committerAaronepower <theaaronepower@gmail.com>2016-02-06 12:17:12 +0000
commitb92ce40daaf4093c91303194af918d6340d269c9 (patch)
treeecdc617fbf4a4bfd5cc963d98a01e9826ba8a04c /doc/ssh
parent3b080be3e0de27d418423917a52c6c5199968192 (diff)
downloadgitlab-ce-b92ce40daaf4093c91303194af918d6340d269c9.tar.gz
Fixed Window's commands for SSH Help.
Diffstat (limited to 'doc/ssh')
-rw-r--r--doc/ssh/README.md21
1 files changed, 19 insertions, 2 deletions
diff --git a/doc/ssh/README.md b/doc/ssh/README.md
index 77eb53427e2..a1198e5878f 100644
--- a/doc/ssh/README.md
+++ b/doc/ssh/README.md
@@ -5,6 +5,12 @@
An SSH key allows you to establish a secure connection between your
computer and GitLab. Before generating an SSH key in your shell, check if your system
already has one by running the following command:
+
+**Windows Command Line:**
+```bash
+type %userprofile%\.ssh\id_rsa.pub
+```
+**GNU/Linux/Mac/PowerShell:**
```bash
cat ~/.ssh/id_rsa.pub
```
@@ -25,6 +31,12 @@ press enter to use the default. If you use a different name, the key will not
be used automatically.
Use the command below to show your public key:
+
+**Windows Command Line:**
+```bash
+type %userprofile%\.ssh\id_rsa.pub
+```
+**GNU/Linux/Mac/PowerShell:**
```bash
cat ~/.ssh/id_rsa.pub
```
@@ -36,9 +48,14 @@ with your username and host.
To copy your public key to the clipboard, use the code below. Depending on your
OS you'll need to use a different command:
-**Windows:**
+**Windows Command Line:**
+```bash
+type %userprofile%\.ssh\id_rsa.pub | clip
+```
+
+**Windows PowerShell:**
```bash
-clip < ~/.ssh/id_rsa.pub
+cat ~/.ssh/id_rsa.pub | clip
```
**Mac:**