Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

gitlab set ssh key

Generate SSH Key:
- ssh-keygen -t rsa -C "Comment for key"

Add it to gitlab:
- cat ~/.ssh/id_rsa.pub (copy all output)
- Open web browser, go to: Gitlab > User Settings > SSH Keys
- Paste copied output in the SSH key section

Test connection:
- ssh -T git@gilab.domain.com (can use private url)

Do some git stuff:
- git clone something
 
PREVIOUS NEXT
Tagged: #gitlab #set #ssh #key
ADD COMMENT
Topic
Name
5+1 =