User Tools

Site Tools


auth:howto:sshkeygitlab

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
auth:howto:sshkeygitlab [2019/01/16 10:03] – external edit 127.0.0.1auth:howto:sshkeygitlab [2019/12/03 14:07] – [GET/SET SSH KEY] apano
Line 6: Line 6:
 You need an SSH key that resides on your workstation/notebook. You can use an already existing key or generate a new one.  You need an SSH key that resides on your workstation/notebook. You can use an already existing key or generate a new one. 
  
-To check if you already have an SSH certificate that you have to check the file: +To check if you already have an SSH key you have to check the file: 
 LINUX/MACOSX <code>.ssh/id_rsa.pub </code>  LINUX/MACOSX <code>.ssh/id_rsa.pub </code> 
 WINDOWS <code>%userprofile%\.ssh\id_rsa.pub</code> WINDOWS <code>%userprofile%\.ssh\id_rsa.pub</code>
  
-If this file contains an SSH-RSA key, proceed to [[https://wiki.inf.unibz.it/auth/howto/sshkeygitlab#configure_gitlab_online| Configure the SSH key on gitlab.inf.unibz.it]]. +If this file contains an SSH-RSA key (open the file with a text editor), proceed to [[https://wiki.inf.unibz.it/auth/howto/sshkeygitlab#configure_gitlab_online| Configure the SSH key on gitlab.inf.unibz.it]]. 
-If this file is empty or does not exist, it means that the key was never generated. + 
 +If this file is empty or does not exist, it means that the key was never generated so you have to generate it 
 + 
 +To generate an SSH key via command line open a LINUX/MACOSX terminal or WINDOWS Git-Bash and run the command: 
 +<code>ssh-keygen -t rsa -C "your_email@example.com" -b 4096</code> 
 + 
 + 
 +When you're asked to "Enter a file in which to save the key," select either the default location or a location you prefer and leave as name id_rsa (if this is your only RSA key) or setup a file name of your choice.[[https://docs.gitlab.com/ee/ssh/README.html|GitLab Official Documentation]]  
  
-To generate the key you can use a key generator such as [[http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html|PuTTYgen]], or command line.  +<note important>Windows Git Bash your rsa-key (~/.ssh/id_rsa) file MUST be called id_rsa.</note>
-To generate the key via command line use the command: +
-<code>ssh-keygen -t rsa -C "your_email@unibz.it" -b 4096</code> +
-To generate the key via PuTTygen follow the guidelines of the product.  +
-<note important>Windows GitBash your rsa-key (~/.ssh/id_rsa) file must be called id_rsa. Create it if it does not exist and add the generated rsa key there </note>+
  
-Remember that you can also use another name for the file name. You can call the file gitlab.inf_rsa if you prefer or anything else.  +You can also use a key generator such as [[http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html|PuTTYgen]] instead of using the terminal. Please refer to the guidelines of the product on how to create the RSA key and the location of the file.  
-[[https://docs.gitlab.com/ee/ssh/README.html|GitLab Official Documentation]]+
  
 ===== CONFIGURE GITLAB ONLINE ===== ===== CONFIGURE GITLAB ONLINE =====
/data/www/wiki.inf.unibz.it/data/pages/auth/howto/sshkeygitlab.txt · Last modified: 2019/12/03 14:18 by apano