... | @@ -4,7 +4,7 @@ Secure SHell (SSH) is a protocol to enable secure communication over an unsecure |
... | @@ -4,7 +4,7 @@ Secure SHell (SSH) is a protocol to enable secure communication over an unsecure |
|
|
|
|
|
### Generate SSH Keys
|
|
### Generate SSH Keys
|
|
```Bash
|
|
```Bash
|
|
ssh-keygen -t rsa -b 4096
|
|
ssh-keygen
|
|
Generating public/private rsa key pair.
|
|
Generating public/private rsa key pair.
|
|
Enter file in which to save the key (/home/username/.ssh/id_rsa):
|
|
Enter file in which to save the key (/home/username/.ssh/id_rsa):
|
|
```
|
|
```
|
... | @@ -15,15 +15,15 @@ At this point press ENTER to save the keys to the default location. |
... | @@ -15,15 +15,15 @@ At this point press ENTER to save the keys to the default location. |
|
|
|
|
|
To add your SSH key to your GitLab account, first log into your GitLab account.
|
|
To add your SSH key to your GitLab account, first log into your GitLab account.
|
|
|
|
|
|
![GitLab-Settings1](uploads/37e8125cf37f8a793be97f85514992ac/GitLab-Settings1.png)
|
|
![GitLab-Settings1](Images/GitLab-Settings1.png)
|
|
|
|
|
|
Then open your account settings page.
|
|
Then open your account settings page.
|
|
|
|
|
|
![GitLab-Settings2.2](uploads/1da87fc34156297a41daf5e31aae5900/GitLab-Settings2.2.png)
|
|
![GitLab-Settings2.2](Images/GitLab-Settings2.2.png)
|
|
|
|
|
|
Open the page for SSH keys.
|
|
Open the page for SSH keys.
|
|
|
|
|
|
![GitLab-SSH_Key](uploads/c8f8b9eda4e1cf8781fe079f87333840/GitLab-SSH_Key.png)
|
|
![GitLab-SSH_Key](Images/GitLab-SSH_Key.png)
|
|
|
|
|
|
Copy the contents of the file `/home/username/.ssh/id_rsa.pub` into the `Key` field on the web page and give the key a name in `Title` field, then press the `Add key` button.
|
|
Copy the contents of the file `/home/username/.ssh/id_rsa.pub` into the `Key` field on the web page and give the key a name in `Title` field, then press the `Add key` button.
|
|
|
|
|
... | | ... | |