2015-06-22 11:54:40 -04:00
|
|
|
# How to create your SSH Keys
|
|
|
|
|
2015-06-22 12:00:38 -04:00
|
|
|
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.
|
2015-06-22 11:54:40 -04:00
|
|
|
|
|
|
|
## Generate your SSH Key
|
|
|
|
|
2015-07-09 18:33:42 -04:00
|
|
|
Create an account on GitLab. Sign up and check your email for your confirmation link.
|
2015-06-22 11:54:40 -04:00
|
|
|
|
2015-07-09 18:33:42 -04:00
|
|
|
After you confirm, go to [GitLab.com](https://about.gitlab.com/) and sign in to your account.
|
2015-06-22 11:54:40 -04:00
|
|
|
|
|
|
|
## Add your SSH Key
|
|
|
|
|
2015-07-09 18:33:42 -04:00
|
|
|
At the top right corner, click on "profile settings":
|
2015-06-22 11:54:40 -04:00
|
|
|
|
2015-06-22 12:00:38 -04:00
|
|
|
![profile settings](basicsimages/profile_settings.png)
|
2015-06-22 11:54:40 -04:00
|
|
|
|
2015-07-09 18:33:42 -04:00
|
|
|
On the left side menu click on "SSH Keys":
|
2015-06-22 11:54:40 -04:00
|
|
|
|
2015-06-22 12:00:38 -04:00
|
|
|
![SSH Keys](basicsimages/shh_keys.png)
|
2015-06-22 11:54:40 -04:00
|
|
|
|
2015-07-09 18:33:42 -04:00
|
|
|
Then click on the green button "Add SSH Key":
|
2015-06-22 11:54:40 -04:00
|
|
|
|
2015-06-22 12:00:38 -04:00
|
|
|
![Add SSH Key](basicsimages/add_sshkey.png)
|
2015-06-22 11:54:40 -04:00
|
|
|
|
2015-07-09 18:33:42 -04:00
|
|
|
There, you should paste the SSH Key that your command line will generate for you. Below you'll find the steps to generate it:
|
2015-06-22 11:54:40 -04:00
|
|
|
|
2015-06-22 12:00:38 -04:00
|
|
|
![Paste SSH Key](basicsimages/paste_sshkey.png)
|
2015-06-22 11:54:40 -04:00
|
|
|
|
2015-07-09 18:33:42 -04:00
|
|
|
## To generate an SSH Key on your command line
|
2015-06-22 11:54:40 -04:00
|
|
|
|
2015-07-09 18:33:42 -04:00
|
|
|
Go to your [command line](start-using-git.md) and follow the [instructions](../ssh/README.md) to generate it.
|
2015-06-22 11:54:40 -04:00
|
|
|
|
2015-07-09 18:33:42 -04:00
|
|
|
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.
|
2015-06-22 11:54:40 -04:00
|
|
|
|
2015-06-22 12:00:38 -04:00
|
|
|
![Paste SSH Key](basicsimages/key.png)
|
2015-06-22 11:54:40 -04:00
|
|
|
|
2015-07-09 18:33:42 -04:00
|
|
|
Now, you'll be able to use Git over SSH, instead of Git over HTTP.
|