From d3c9752122b5e637249be26f613e7e00b488d596 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 22 Aug 2013 14:00:52 +0200 Subject: generateing your key MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- using-git.texinfo | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/using-git.texinfo b/using-git.texinfo index 2a5594c..b20677a 100644 --- a/using-git.texinfo +++ b/using-git.texinfo @@ -68,6 +68,7 @@ Texts. A copy of the license is included in the section entitled * Create a repository:: * Create an origin:: * Gratis hosting:: +* Generate your key:: @end menu @@ -222,6 +223,33 @@ Free Software, but not gratis. +@node Generate your key +@section Generate your key + +Many Git servers authenticate using public +SSH keys. If you do not already have SSH +installed, install it, it is probably named +@code{openssh} in your GNU/Linux distributions' +package repository. + +Before create an SSH key, check if you already +have one. You are looking for a pair of +@file{id_rsa.pub} and @file{id_rsa}, in +@file{~/.ssh}. @file{id_rsa} is your private +key and should not be shared or made public. +@file{id_rsa.pub} is you public key and is +the file you want to upload you your Git +hosting server. + +If you do not already have a key, you can +create it with: + +@example +ssh-keygen -t rsa -C 'YOUR_EMAIL_ADDRESS' +@end example + + + @node Introduction @chapter Introduction -- cgit v1.2.3-70-g09d2