2013-01-22 16:58:09 +01:00
|
|
|
= render layout: 'help/layout' do
|
|
|
|
%h3.page_title SSH Keys
|
|
|
|
%br
|
2012-08-22 02:56:53 +02:00
|
|
|
|
2013-01-22 16:58:09 +01:00
|
|
|
%p.slead
|
|
|
|
SSH key allows you to establish a secure connection between your computer and GitLab
|
2012-08-22 02:56:53 +02:00
|
|
|
|
2013-01-22 16:58:09 +01:00
|
|
|
%p.slead
|
|
|
|
To generate a new SSH key just open your terminal and use code below.
|
2012-08-22 02:56:53 +02:00
|
|
|
|
2013-01-22 16:58:09 +01:00
|
|
|
%pre.dark
|
|
|
|
ssh-keygen -t rsa -C "#{current_user.email}"
|
2012-08-22 02:56:53 +02:00
|
|
|
|
2013-01-22 16:58:09 +01:00
|
|
|
\# Creates a new ssh key using the provided email
|
|
|
|
\# Generating public/private rsa key pair...
|
2012-08-22 02:56:53 +02:00
|
|
|
|
2013-01-22 16:58:09 +01:00
|
|
|
%p.slead
|
|
|
|
Next just use code below to dump your public key and add to GitLab SSH Keys
|
2012-08-22 02:56:53 +02:00
|
|
|
|
2013-01-22 16:58:09 +01:00
|
|
|
%pre.dark
|
|
|
|
cat ~/.ssh/id_rsa.pub
|
2012-08-22 02:56:53 +02:00
|
|
|
|
2013-01-22 16:58:09 +01:00
|
|
|
\# ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC6eNtGpNGwstc....
|