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 revision
Previous revision
Next revisionBoth sides next revision
auth:howto:sshkeygitlab [2016/07/07 11:27] – [SINGLE GIT ACCOUNT] apanoauth:howto:sshkeygitlab [2017/06/13 11:48] – [GET/SET SSH KEY] apano
Line 15: Line 15:
 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.  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. 
 To generate the key via command line use the command: To generate the key via command line use the command:
-<code>ssh-keygen -t rsa -C "your_email@unibz.it"</code>+<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.  To generate the key via PuTTygen follow the guidelines of the product. 
  
-Remember that you can also use another name for the file name. You can call the file gitlab_rsa if you prefer or anything else. +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. 
  
 ===== CONFIGURE GITLAB ONLINE ===== ===== CONFIGURE GITLAB ONLINE =====
Line 55: Line 55:
  
                  
-==== MULTIPLE GIT ACCOUNTS ====+==== LOCAL GIT ACCOUNT ====
 You can also have different gitlab accounts (with different RSA keys) for different hosts. You can keep a global user/email configuration and a local configuration for a specific repository. In the root of a repository, run: You can also have different gitlab accounts (with different RSA keys) for different hosts. You can keep a global user/email configuration and a local configuration for a specific repository. In the root of a repository, run:
  
/data/www/wiki.inf.unibz.it/data/pages/auth/howto/sshkeygitlab.txt · Last modified: 2019/12/03 14:18 by apano