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 [2016/06/15 10:47] – [SINGLE GIT ACCOUNT] apano | auth:howto:sshkeygitlab [2017/06/13 11:48] – [GET/SET SSH KEY] apano | ||
---|---|---|---|
Line 15: | Line 15: | ||
To generate the key you can use a key generator such as [[http:// | To generate the key you can use a key generator such as [[http:// | ||
To generate the key via command line use the command: | To generate the key via command line use the command: | ||
- | < | + | < |
To generate the key via PuTTygen follow the guidelines of the product. | To generate the key via PuTTygen follow the guidelines of the product. | ||
- | Remember that you can also use another name for the file name. You can call the file gitlab_rsa | + | Remember that you can also use another name for the file name. You can call the file gitlab.inf_rsa |
===== CONFIGURE GITLAB ONLINE ===== | ===== CONFIGURE GITLAB ONLINE ===== | ||
Line 27: | Line 27: | ||
===== LOCAL GITLAB PROFILE ===== | ===== LOCAL GITLAB PROFILE ===== | ||
- | ==== SINGLE | + | ==== GLOBAL |
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. | ||
- | LINUX/ | + | Inside a terminal |
- | + | ||
- | Inside a terminal, | + | |
- | + | ||
- | < | + | |
- | git config --global user.name " | + | |
- | git config --global user.email " | + | |
- | git config --list | + | |
- | </code> | + | |
- | + | ||
- | WINDOWS | + | |
- | + | ||
- | Inside your GIT bash command line, type the following: | + | |
< | < | ||
Line 67: | Line 55: | ||
| | ||
- | ==== MULTIPLE | + | ==== LOCAL GIT ACCOUNT |
You can also have different gitlab accounts (with different RSA keys) for different hosts. You can keep a global user/email configuration and a local configuration for a specific repository. In the root of a repository, run: | You can also have different gitlab accounts (with different RSA keys) for different hosts. You can keep a global user/email configuration and a local configuration for a specific repository. In the root of a repository, run: | ||
/data/www/wiki.inf.unibz.it/data/pages/auth/howto/sshkeygitlab.txt · Last modified: 2019/12/03 14:18 by apano