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
auth:howto:sshkeygitlab [2019/12/03 14:16] – [GLOBAL GIT ACCOUNT] apanoauth:howto:sshkeygitlab [2019/12/03 14:18] (current) – [GET/SET SSH KEY] apano
Line 15: Line 15:
 If this file is empty or does not exist, it means that the key was never generated so you have to generate it.  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: +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>+<code>ssh-keygen -t rsa -C "your@email" -b 4096</code>
  
  
Line 48: Line 48:
 <code> <code>
 git config --global user.name "Firstname Lastname" git config --global user.name "Firstname Lastname"
-git config --global user.email "your_email@unibz.it"+git config --global user.email "your@email"
 git config --list git config --list
 </code> </code>
Line 59: Line 59:
 [user] [user]
         name = Lastname Firstname         name = Lastname Firstname
-        email = your_email@unibz.it+        email = your@email
 </code> </code>
  
Line 70: Line 70:
                  
 ==== LOCAL GIT ACCOUNT ==== ==== 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 git 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:
  
 <code txt> <code txt>
/data/www/wiki.inf.unibz.it/data/attic/auth/howto/sshkeygitlab.1575378967.txt.gz · Last modified: 2019/12/03 14:16 by apano