aboutsummaryrefslogtreecommitdiffstats
path: root/using-git.texinfo
diff options
context:
space:
mode:
Diffstat (limited to 'using-git.texinfo')
-rw-r--r--using-git.texinfo28
1 files changed, 28 insertions, 0 deletions
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