auth:howto:sshkeygitlab
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
auth:howto:sshkeygitlab [2016/06/07 17:21] – apano | auth:howto:sshkeygitlab [2016/06/07 17:37] – [LOCAL GITLAB PROFILE] apano | ||
---|---|---|---|
Line 26: | Line 26: | ||
===== LOCAL GITLAB PROFILE ===== | ===== LOCAL GITLAB PROFILE ===== | ||
+ | |||
+ | ==== SINGLE GIT ACCOUNT ==== | ||
You have to configure your locally installed gitlab to connect using the ssh key. | You have to configure your locally installed gitlab to connect using the ssh key. | ||
Line 41: | Line 43: | ||
The last command should show the data you entered and is your gitlab global configuration. | The last command should show the data you entered and is your gitlab global configuration. | ||
- | You have to edit your gitlab configuration to reflect the URL and the username/ | + | This data is saved in the file ~/ |
- | + | ||
- | 1. edit the file ~/ | + | |
<code txt> | <code txt> | ||
Line 51: | Line 51: | ||
</ | </ | ||
- | 2. edit .ssh/config | + | Try to checkout repo. Should you experience trouble check the contents of file: .ssh/config. You can manually insert: |
- | <code txt> | + | |
host gitlabhostname.unibz.it | host gitlabhostname.unibz.it | ||
- | | + | |
+ | |||
+ | |||
+ | ==== MULTIPLE GIT ACCOUNTS ==== | ||
+ | You can also have different gitlab accounts (with different RSA keys) for different hosts. You can keep a global | ||
+ | |||
+ | <code txt> | ||
+ | git config user.name " | ||
+ | git config global user.email " | ||
</ | </ | ||
+ | |||
/data/www/wiki.inf.unibz.it/data/pages/auth/howto/sshkeygitlab.txt · Last modified: 2019/12/03 14:18 by apano