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 13:40] – [Identify or create the SSH key] apano | auth_gitlab [2019/12/03 14:49] – [Add an SSH key] apano | ||
---|---|---|---|
Line 3: | Line 3: | ||
Since July 2016 we use [[https:// | Since July 2016 we use [[https:// | ||
- | UNIBZ users have to login to [[https:// | + | UNIBZ users have to login to [[https:// |
External users can sign up with their Google, Github, Twitter, Facebook, Bitbucket or Microsoft account. | External users can sign up with their Google, Github, Twitter, Facebook, Bitbucket or Microsoft account. | ||
Line 23: | Line 23: | ||
===== Identify or create the SSH key ===== | ===== Identify or create the SSH key ===== | ||
- | If you need support on how to generate the SSH key follow our guide on [[auth:howto: | + | |
+ | You need an SSH key that resides | ||
+ | |||
+ | ==== Check for an existing SSH key ==== | ||
+ | |||
+ | If you already have an SSH key you will probably find it here: | ||
+ | |||
+ | Linux/macOS : ~/ | ||
+ | |||
+ | Windows : %userprofile%\.ssh\id_rsa.pub | ||
+ | |||
+ | |||
+ | Open the file with a text editor and check if it has contents. Typically it starts with ssh-rsa or ssh-ed25519. If it has contents | ||
+ | |||
+ | ==== Generate an SSH key ==== | ||
+ | Open a terminal on Linux or macOS, or Git Bash on Windows and run the command: | ||
+ | < | ||
+ | or | ||
+ | < | ||
+ | |||
+ | You can check your e-mail on your Gitlab Profile -> Main Settings -> Email | ||
+ | |||
+ | 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 an SSH key ===== | ===== Add an SSH key ===== | ||
- | If you already have an SSH key login to GitLab | + | Login to Gitlab |
- | Once you click Add Key, you will see the it listed. | + | |
+ | In the field Key copy the contents of the file: id_rsa.pub (or any other file containing your key). | ||
+ | |||
+ | Choose a name to identify the key (ex. YourComputerName) and click Add Key, you will see the it listed. | ||
===== Configure your local Git Client ===== | ===== Configure your local Git Client ===== |
/data/www/wiki.inf.unibz.it/data/pages/auth_gitlab.txt · Last modified: 2020/04/02 11:25 by apano