Skip to content

Commit f8df2bc

Browse files
committed
Refactor SSH key addition in GitLab basics
1 parent eecccf5 commit f8df2bc

10 files changed

+21
-17
lines changed

Diff for: doc/gitlab-basics/create-your-ssh-keys.md

+21-17
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,37 @@
11
# How to create your SSH Keys
22

3-
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.
3+
1. The first thing you need to do is go to your [command line](start-using-git.md)
4+
and follow the [instructions](../ssh/README.md) to generate your SSH key pair.
45

5-
## Generate your SSH Key
6+
1. Once you do that, login to GitLab with your credentials.
7+
1. On the upper right corner, click on your avatar and go to your **Profile settings**.
68

7-
Create an account on GitLab. Sign up and check your email for your confirmation link.
9+
![Profile settings dropdown](img/profile_settings.png)
810

9-
After you confirm, go to GitLab and sign in to your account.
11+
1. Navigate to the **SSH keys** tab.
1012

11-
## Add your SSH Key
13+
![SSH Keys](img/profile_settings_ssh_keys.png)
1214

13-
On the left side menu, click on "profile settings" and then click on "SSH Keys":
15+
3. Paste your **public** key that you generated in the first step in the 'Key'
16+
box.
1417

15-
![SSH Keys](img/shh_keys.png)
18+
![Paste SSH public key](img/profile_settings_ssh_keys_paste_pub.png)
1619

17-
Then click on the green button "Add SSH Key":
20+
1. Optionally, give it a descriptive title so that you can recognize it in the
21+
event you add multiple keys.
1822

19-
![Add SSH Key](img/add_sshkey.png)
23+
![SSH key title](img/profile_settings_ssh_keys_title.png)
2024

21-
There, you should paste the SSH Key that your command line will generate for you. Below you'll find the steps to generate it:
25+
1. Finally, click on **Add key** to add it to GitLab. You will be able to see
26+
its fingerprint, its title and creation date.
2227

23-
![Paste SSH Key](img/paste_sshkey.png)
28+
![SSH key single page](img/profile_settings_ssh_keys_single_key.png)
2429

25-
## To generate an SSH Key on your command line
2630

27-
Go to your [command line](start-using-git.md) and follow the [instructions](../ssh/README.md) to generate it.
31+
>**Note:**
32+
Once you add a key, you cannot edit it, only remove it. In case the paste
33+
didn't work, you will have to remove the offending key and re-add it.
2834

29-
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.
35+
---
3036

31-
![Paste SSH Key](img/key.png)
32-
33-
Now, you'll be able to use Git over SSH, instead of Git over HTTP.
37+
Congratulations! You are now ready to use Git over SSH, instead of Git over HTTP!

Diff for: doc/gitlab-basics/img/add_sshkey.png

-1.36 KB
Binary file not shown.

Diff for: doc/gitlab-basics/img/key.png

-1.15 KB
Binary file not shown.

Diff for: doc/gitlab-basics/img/paste_sshkey.png

-7.52 KB
Binary file not shown.

Diff for: doc/gitlab-basics/img/profile_settings.png

4.76 KB
Loading

Diff for: doc/gitlab-basics/img/profile_settings_ssh_keys.png

42 KB
Loading
36.6 KB
Loading
18.1 KB
Loading
2.31 KB
Loading

Diff for: doc/gitlab-basics/img/shh_keys.png

-4.67 KB
Binary file not shown.

0 commit comments

Comments
 (0)