Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
iv
gitlab-ce
Commits
cfcb5f0f
Commit
cfcb5f0f
authored
Sep 23, 2015
by
karen Carias
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed step to instructions
parent
84d450bf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
doc/ssh/README.md
doc/ssh/README.md
+13
-13
No files found.
doc/ssh/README.md
View file @
cfcb5f0f
...
@@ -3,27 +3,27 @@
...
@@ -3,27 +3,27 @@
## SSH keys
## SSH keys
An SSH key allows you to establish a secure connection between your
An SSH key allows you to establish a secure connection between your
computer and GitLab.
computer and GitLab. Before generating an SSH key in your shell, check if your system
already has one by running the following command:
```
bash
cat
~/.ssh/id_rsa.pub
```
Before generating an SSH key, check if your system already has one by
If you see a long string starting with
`ssh-rsa`
or
`ssh-dsa`
, you can skip the
`ssh-keygen`
step.
running
`cat ~/.ssh/id_rsa.pub`
. If you see a long string starting with
`ssh-rsa`
or
`ssh-dsa`
, you can skip the ssh-keygen step.
To generate a new SSH key, just open your terminal and use code below. The
Note: It is a best practice to use a password for an SSH key, but it is not
ssh-keygen command prompts you for a location and filename to store the key
pair and for a password. When prompted for the location and filename, you
can press enter to use the default.
It is a best practice to use a password for an SSH key, but it is not
required and you can skip creating a password by pressing enter. Note that
required and you can skip creating a password by pressing enter. Note that
the password you choose here can't be altered or retrieved.
the password you choose here can't be altered or retrieved.
To generate a new SSH key, use the following command:
```
bash
```
bash
ssh-keygen
-t
rsa
-C
"
$your_email
"
ssh-keygen
-t
rsa
-C
"
$your_email
"
```
```
This command will prompt you for a location and filename to store the key
pair and for a password. When prompted for the location and filename, you
can press enter to use the default.
Use the code below to show your public key.
Use the command below to show your public key:
```
bash
```
bash
cat
~/.ssh/id_rsa.pub
cat
~/.ssh/id_rsa.pub
```
```
...
@@ -32,7 +32,7 @@ Copy-paste the key to the 'My SSH Keys' section under the 'SSH' tab in your
...
@@ -32,7 +32,7 @@ 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
user profile. Please copy the complete key starting with
`ssh-`
and ending
with your username and host.
with your username and host.
Use code below to copy your public key to the clipboard
. Depending on your
To copy your public key to the clipboard, use code below
. Depending on your
OS you'll need to use a different command:
OS you'll need to use a different command:
**Windows:**
**Windows:**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment