|
1 | 1 | # How to create your SSH Keys
|
2 | 2 |
|
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. |
4 | 5 |
|
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**. |
6 | 8 |
|
7 |
| -Create an account on GitLab. Sign up and check your email for your confirmation link. |
| 9 | +  |
8 | 10 |
|
9 |
| -After you confirm, go to GitLab and sign in to your account. |
| 11 | +1. Navigate to the **SSH keys** tab. |
10 | 12 |
|
11 |
| -## Add your SSH Key |
| 13 | +  |
12 | 14 |
|
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. |
14 | 17 |
|
15 |
| - |
| 18 | +  |
16 | 19 |
|
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. |
18 | 22 |
|
19 |
| - |
| 23 | +  |
20 | 24 |
|
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. |
22 | 27 |
|
23 |
| - |
| 28 | +  |
24 | 29 |
|
25 |
| -## To generate an SSH Key on your command line |
26 | 30 |
|
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. |
28 | 34 |
|
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 | +--- |
30 | 36 |
|
31 |
| - |
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! |
0 commit comments