]> TLD Linux GIT Repositories - TLD.git/commitdiff
- ssh part explained
authorMarcin Rybak <marti@tld-linux.org>
Tue, 29 Nov 2011 12:29:08 +0000 (13:29 +0100)
committerMarcin Rybak <marti@tld-linux.org>
Tue, 29 Nov 2011 12:29:08 +0000 (13:29 +0100)
git-howto.txt

index 767aff9003ed4b2d1b1275794308f3b7247f135b..e238ee45194e097de3580c30db5726bacca64f5f 100644 (file)
@@ -7,6 +7,7 @@ Table Of Content:
 1. How do I prepare git to work?
    a) Install git-core
    b) Configure git globally
+   c) Configure ssh environment to work with git
 2. How do I commit a new .spec file or package to the repository?
    a) Clone an empty repository (note: it will be automatically created on server
       side.)
@@ -49,6 +50,29 @@ Replace "your_git_login" and "John Doe" accordingly.
 
 Above commands will create ~/.gitconfig file with proper settings.
 
+c) Configure ssh environment to work with git
+
+If you plan to use non default ssh key pair, it's better to put some info about 
+it to your default .ssh/config file. Edit your local Host alias and key path in 
+sample below:
+
+Host git.tld-linux.org
+     User git
+     Hostname git.tld-linux.org
+     PreferredAuthentications publickey
+     IdentityFile /home/users/YOURUSER/.ssh/YOUR_KEY_FILE
+
+To test if ssh works, do the:
+
+ssh -T git.tld-linux.org
+
+you should get similar answer:
+
+hello USER, the gitolite version here is x.y.z
+the gitolite config gives you the following access:
+     R   W      TLD
+       (...)
+
 ==============================================================================
 2. How do I commit a new .spec file or package to the repository?