auth_gitlab
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_gitlab [2019/12/03 14:57] – [Local Configuration] apano | auth_gitlab [2019/12/03 15:07] – [Configure your local Git Client] apano | ||
---|---|---|---|
Line 47: | Line 47: | ||
When you are asked for a location and file name you can either keep the default location or choose a new one. If this is your only key we advice you accept the defaults and maintain the file name id_rsa. Should you have several keys you can name them according to your own preferences. [[https:// | When you are asked for a location and file name you can either keep the default location or choose a new one. If this is your only key we advice you accept the defaults and maintain the file name id_rsa. Should you have several keys you can name them according to your own preferences. [[https:// | ||
- | You can also use a key generator such as [[http:// | + | Add the key to your ssh agent by issuing this commands on Linux/macOS or Git Bash for Windows (adapt to your id_rsa path): |
+ | |||
+ | < | ||
+ | $ eval " | ||
+ | $ ssh-add -K ~/ | ||
+ | </ | ||
+ | |||
+ | Note: You can also use a key generator such as [[http:// | ||
===== Add an SSH key ===== | ===== Add an SSH key ===== | ||
Line 59: | Line 66: | ||
Before proceeding check if your GIT client is already configured. | Before proceeding check if your GIT client is already configured. | ||
- | Linux/macOS terminal or Windows Git Bash, type the following: < | + | In Linux/macOS terminal or Windows Git Bash, type the following: < |
This command lists any existing GIT repositories configurations. | This command lists any existing GIT repositories configurations. | ||
If you have an already existing configuration, | If you have an already existing configuration, | ||
- | ==== Global | + | ==== Global configuration ==== |
- | To configure GIT globally using the SSH key Inside | + | To configure GIT globally using the SSH key inside |
< | < | ||
git config --global user.name " | git config --global user.name " | ||
Line 73: | Line 80: | ||
This data is stored in your gitconfiguration file: | This data is stored in your gitconfiguration file: | ||
- | Linux/Mac: ~/ | + | |
+ | Linux/macOS: ~/ | ||
Windows: C: | Windows: C: | ||
Line 80: | Line 89: | ||
[user] | [user] | ||
name = Lastname Firstname | name = Lastname Firstname | ||
- | email = your_email@unibz.it | + | email = your@email |
</ | </ | ||
- | Add your server | + | Add your server data in your ssh configuration file. Verify the path is correct |
Linux/Mac file ~/ | Linux/Mac file ~/ | ||
< | < | ||
host gitlab.inf.unibz.it | host gitlab.inf.unibz.it | ||
+ | | ||
user your_username | user your_username | ||
+ | | ||
</ | </ | ||
Line 94: | Line 105: | ||
< | < | ||
Host gitlab.inf.unibz.it | Host gitlab.inf.unibz.it | ||
- | RSAAuthentication yes | + | RSAAuthentication yes |
- | IdentityFile ~/ | + | |
</ | </ | ||
/data/www/wiki.inf.unibz.it/data/pages/auth_gitlab.txt · Last modified: 2020/04/02 11:25 by apano