auth:howto:sshkeygitlab
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
auth:howto:sshkeygitlab [2019/12/03 14:07] – [GET/SET SSH KEY] apano | auth:howto:sshkeygitlab [2019/12/03 14:18] (current) – [GET/SET SSH KEY] apano | ||
---|---|---|---|
Line 15: | Line 15: | ||
If this file is empty or does not exist, it means that the key was never generated so you have to generate it. | 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 an SSH key via command line open a LINUX/ | + | To generate an SSH key via command line open a LINUX/ |
- | < | + | < |
Line 26: | Line 26: | ||
===== 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 40: | 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: |
< | < | ||
git config --global user.name " | git config --global user.name " | ||
- | git config --global user.email "your_email@unibz.it" | + | git config --global user.email "your@email" |
git config --list | git config --list | ||
</ | </ | ||
Line 55: | Line 59: | ||
[user] | [user] | ||
name = Lastname Firstname | name = Lastname Firstname | ||
- | email = your_email@unibz.it | + | email = your@email |
</ | </ | ||
Line 66: | 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/attic/auth/howto/sshkeygitlab.1575378440.txt.gz · Last modified: 2019/12/03 14:07 by apano