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
Léo-Paul Géneau
gitlab-ce
Commits
f8df2bc6
Commit
f8df2bc6
authored
Oct 10, 2016
by
Achilleas Pipinellis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor SSH key addition in GitLab basics
parent
eecccf5e
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
21 additions
and
17 deletions
+21
-17
doc/gitlab-basics/create-your-ssh-keys.md
doc/gitlab-basics/create-your-ssh-keys.md
+21
-17
doc/gitlab-basics/img/add_sshkey.png
doc/gitlab-basics/img/add_sshkey.png
+0
-0
doc/gitlab-basics/img/key.png
doc/gitlab-basics/img/key.png
+0
-0
doc/gitlab-basics/img/paste_sshkey.png
doc/gitlab-basics/img/paste_sshkey.png
+0
-0
doc/gitlab-basics/img/profile_settings.png
doc/gitlab-basics/img/profile_settings.png
+0
-0
doc/gitlab-basics/img/profile_settings_ssh_keys.png
doc/gitlab-basics/img/profile_settings_ssh_keys.png
+0
-0
doc/gitlab-basics/img/profile_settings_ssh_keys_paste_pub.png
...gitlab-basics/img/profile_settings_ssh_keys_paste_pub.png
+0
-0
doc/gitlab-basics/img/profile_settings_ssh_keys_single_key.png
...itlab-basics/img/profile_settings_ssh_keys_single_key.png
+0
-0
doc/gitlab-basics/img/profile_settings_ssh_keys_title.png
doc/gitlab-basics/img/profile_settings_ssh_keys_title.png
+0
-0
doc/gitlab-basics/img/shh_keys.png
doc/gitlab-basics/img/shh_keys.png
+0
-0
No files found.
doc/gitlab-basics/create-your-ssh-keys.md
View file @
f8df2bc6
# How to create your SSH Keys
You need to connect your computer to your GitLab account through SSH Keys. They are unique for every computer that you link your GitLab account with.
1.
The first thing you need to do is go to your
[
command line
](
start-using-git.md
)
and follow the
[
instructions
](
../ssh/README.md
)
to generate your SSH key pair.
## Generate your SSH Key
1.
Once you do that, login to GitLab with your credentials.
1.
On the upper right corner, click on your avatar and go to your
**Profile settings**
.
Create an account on GitLab. Sign up and check your email for your confirmation link.
![Profile settings dropdown](img/profile_settings.png)
After you confirm, go to GitLab and sign in to your account
.
1.
Navigate to the
**SSH keys**
tab
.
## Add your SSH Key
![SSH Keys](img/profile_settings_ssh_keys.png)
On the left side menu, click on "profile settings" and then click on "SSH Keys":
3.
Paste your
**public**
key that you generated in the first step in the 'Key'
box.
![
SSH Keys
](
img/shh_keys
.png
)
![Paste SSH public key](img/profile_settings_ssh_keys_paste_pub
.png)
Then click on the green button "Add SSH Key":
1.
Optionally, give it a descriptive title so that you can recognize it in the
event you add multiple keys.
![
Add SSH Key
](
img/add_sshkey
.png
)
![SSH key title](img/profile_settings_ssh_keys_title
.png)
There, you should paste the SSH Key that your command line will generate for you. Below you'll find the steps to generate it:
1.
Finally, click on
**Add key**
to add it to GitLab. You will be able to see
its fingerprint, its title and creation date.
![
Paste SSH Key
](
img/paste_ssh
key.png
)
![SSH key single page](img/profile_settings_ssh_keys_single_
key.png)
## To generate an SSH Key on your command line
Go to your
[
command line
](
start-using-git.md
)
and follow the
[
instructions
](
../ssh/README.md
)
to generate it.
>**Note:**
Once you add a key, you cannot edit it, only remove it. In case the paste
didn't work, you will have to remove the offending key and re-add it.
Copy the SSH Key that your command line created and paste it on the "Key" box on the GitLab page. The title will be added automatically.
---
![
Paste SSH Key
](
img/key.png
)
Now, you'll be able to use Git over SSH, instead of Git over HTTP.
Congratulations! You are now ready to use Git over SSH, instead of Git over HTTP!
doc/gitlab-basics/img/add_sshkey.png
deleted
100644 → 0
View file @
eecccf5e
1.36 KB
doc/gitlab-basics/img/key.png
deleted
100644 → 0
View file @
eecccf5e
1.15 KB
doc/gitlab-basics/img/paste_sshkey.png
deleted
100644 → 0
View file @
eecccf5e
7.52 KB
doc/gitlab-basics/img/profile_settings.png
View replaced file @
eecccf5e
View file @
f8df2bc6
1.08 KB
|
W:
|
H:
5.83 KB
|
W:
|
H:
2-up
Swipe
Onion skin
doc/gitlab-basics/img/profile_settings_ssh_keys.png
0 → 100644
View file @
f8df2bc6
42 KB
doc/gitlab-basics/img/profile_settings_ssh_keys_paste_pub.png
0 → 100644
View file @
f8df2bc6
36.6 KB
doc/gitlab-basics/img/profile_settings_ssh_keys_single_key.png
0 → 100644
View file @
f8df2bc6
18.1 KB
doc/gitlab-basics/img/profile_settings_ssh_keys_title.png
0 → 100644
View file @
f8df2bc6
2.31 KB
doc/gitlab-basics/img/shh_keys.png
deleted
100644 → 0
View file @
eecccf5e
4.67 KB
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