User Tools

Site Tools


auth_gitlab

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
auth_gitlab [2019/12/03 15:24] – [Initial setup] apanoauth_gitlab [2019/12/03 16:24] – [Global configuration] apano
Line 46: Line 46:
 <code>ssh-keygen -t ed25519 -C "your@email"</code> <code>ssh-keygen -t ed25519 -C "your@email"</code>
  
-You can check your e-mail on your Gitlab Profile -> Main Settings -> Email+You can check your e-mail on your [[https://gitlab.inf.unibz.it/profile |Gitlab Profile Settings]] -> 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://docs.gitlab.com/ee/ssh/README.html|GitLab Official Documentation]]  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://docs.gitlab.com/ee/ssh/README.html|GitLab Official Documentation]] 
Line 60: Line 60:
  
 ===== Add an SSH key ===== ===== Add an SSH key =====
-Login to Gitlab and go in your profile → Main Settings → SSH Keys. +Login to Gitlab and go [[https://gitlab.inf.unibz.it/profile |in Gitlab Profile Settings]] → SSH Keys. 
  
 In the field Key copy the contents of the file: id_rsa.pub (or any other file containing your key).  In the field Key copy the contents of the file: id_rsa.pub (or any other file containing your key). 
Line 88: Line 88:
      HostName gitlab.inf.unibz.it      HostName gitlab.inf.unibz.it
      user your_username      user your_username
-     IdentityFile ~/.ssh/id_rsa.pub+     IdentityFile ~/.ssh/id_rsa
 </code> </code>
  
Line 95: Line 95:
 Host gitlab.inf.unibz.it Host gitlab.inf.unibz.it
      RSAAuthentication yes      RSAAuthentication yes
-     IdentityFile ~/.ssh/config/id_rsa.pub+     IdentityFile ~/.ssh/config/id_rsa
 </code> </code>
  
/data/www/wiki.inf.unibz.it/data/pages/auth_gitlab.txt · Last modified: 2020/04/02 11:25 by apano