auth:howto:sshkeygitlab
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
auth:howto:sshkeygitlab [2019/01/16 10:03] – external edit 127.0.0.1 | auth:howto:sshkeygitlab [2019/12/03 14:16] – apano | ||
---|---|---|---|
Line 6: | Line 6: | ||
You need an SSH key that resides on your workstation/ | You need an SSH key that resides on your workstation/ | ||
- | To check if you already have an SSH certificate that you have to check the file: | + | To check if you already have an SSH key you have to check the file: |
LINUX/ | LINUX/ | ||
WINDOWS < | WINDOWS < | ||
- | If this file contains an SSH-RSA key, proceed to [[https:// | + | If this file contains an SSH-RSA key (open the file with a text editor), proceed to [[https:// |
- | If this file is empty or does not exist, it means that the key was never generated. | + | |
- | To generate | + | If this file is empty or does not exist, it means that the key was never generated so you have to generate it. |
- | To generate | + | |
- | < | + | |
- | To generate the key via PuTTygen follow the guidelines of the product. | + | |
- | <note important> | + | |
- | Remember that you can also use another name for the file name. You can call the file gitlab.inf_rsa if you prefer or anything else. | + | To generate an SSH key via command line open a LINUX/ |
- | [[https:// | + | < |
+ | |||
+ | |||
+ | When you're asked to "Enter a file in which to save the key," select either the default location or a location | ||
+ | |||
+ | <note important> | ||
+ | |||
+ | You can also use a key generator such as [[http:// | ||
===== CONFIGURE GITLAB ONLINE ===== | ===== CONFIGURE GITLAB ONLINE ===== | ||
- | Login to GitLab and go to -> Profile | + | Login to GitLab and go to your profile |
+ | |||
+ | {{: | ||
+ | |||
+ | In the field Key copy all the contents of the file: id_rsa.pub (or the specific name of your RSA key) | ||
+ | Choose a name to identify the key (ex. YourComputerName) | ||
- | In the field Key copy all the contents of the file: id_rsa.pub (or the specific name of your RSA key) | ||
Click Add Key. | Click Add Key. | ||
Line 37: | Line 44: | ||
You have to configure your locally installed gitlab client to connect using the ssh key. | You have to configure your locally installed gitlab client to connect using the ssh key. | ||
- | Inside a terminal (Linux, MacOS)/GIT bash (Windows), type the following: | + | Inside a terminal (Linux, MacOS)/Git BASH (Windows), type the following: |
< | < | ||
Line 63: | Line 70: | ||
| | ||
==== LOCAL GIT ACCOUNT ==== | ==== LOCAL GIT ACCOUNT ==== | ||
- | You can also have different | + | You can also have different |
<code txt> | <code txt> |
/data/www/wiki.inf.unibz.it/data/pages/auth/howto/sshkeygitlab.txt · Last modified: 2019/12/03 14:18 by apano