... | @@ -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.
|
|
|
|
|
|

|
|

|
|
|
|
|
|
Then open your account settings page.
|
|
Then open your account settings page.
|
|
|
|
|
|

|
|

|
|
|
|
|
|
Open the page for SSH keys.
|
|
Open the page for SSH keys.
|
|
|
|
|
|

|
|

|
|
|
|
|
|
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.
|
|
|
|
|
... | | ... | |