2015-06-22 11:54:40 -04:00
|
|
|
# How to create your SSH Keys
|
|
|
|
|
2016-10-10 16:07:17 -04:00
|
|
|
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.
|
2015-06-22 11:54:40 -04:00
|
|
|
|
2016-10-10 16:07:17 -04:00
|
|
|
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**.
|
2015-06-22 11:54:40 -04:00
|
|
|
|
2016-10-10 16:07:17 -04:00
|
|
|
![Profile settings dropdown](img/profile_settings.png)
|
2015-06-22 11:54:40 -04:00
|
|
|
|
2016-10-10 16:07:17 -04:00
|
|
|
1. Navigate to the **SSH keys** tab.
|
2015-06-22 11:54:40 -04:00
|
|
|
|
2016-10-10 16:07:17 -04:00
|
|
|
![SSH Keys](img/profile_settings_ssh_keys.png)
|
2015-06-22 11:54:40 -04:00
|
|
|
|
2018-11-12 19:39:21 -05:00
|
|
|
1. Paste your **public** key that you generated in the first step in the 'Key'
|
2016-10-10 16:07:17 -04:00
|
|
|
box.
|
2015-06-22 11:54:40 -04:00
|
|
|
|
2016-10-10 16:07:17 -04:00
|
|
|
![Paste SSH public key](img/profile_settings_ssh_keys_paste_pub.png)
|
2015-06-22 11:54:40 -04:00
|
|
|
|
2016-10-10 16:07:17 -04:00
|
|
|
1. Optionally, give it a descriptive title so that you can recognize it in the
|
|
|
|
event you add multiple keys.
|
2015-06-22 11:54:40 -04:00
|
|
|
|
2016-10-10 16:07:17 -04:00
|
|
|
![SSH key title](img/profile_settings_ssh_keys_title.png)
|
2015-06-22 11:54:40 -04:00
|
|
|
|
2016-10-10 16:07:17 -04:00
|
|
|
1. Finally, click on **Add key** to add it to GitLab. You will be able to see
|
|
|
|
its fingerprint, its title and creation date.
|
2015-06-22 11:54:40 -04:00
|
|
|
|
2016-10-10 16:07:17 -04:00
|
|
|
![SSH key single page](img/profile_settings_ssh_keys_single_key.png)
|
2015-06-22 11:54:40 -04:00
|
|
|
|
|
|
|
|
2016-10-10 16:07:17 -04:00
|
|
|
>**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.
|
2015-06-22 11:54:40 -04:00
|
|
|
|
2016-10-10 16:07:17 -04:00
|
|
|
---
|
2015-06-22 11:54:40 -04:00
|
|
|
|
2016-10-10 16:07:17 -04:00
|
|
|
Congratulations! You are now ready to use Git over SSH, instead of Git over HTTP!
|