From: Marcin Rybak Date: Tue, 29 Nov 2011 12:29:08 +0000 (+0100) Subject: - ssh part explained X-Git-Url: https://git.tld-linux.org/?a=commitdiff_plain;h=3c97b300bf1a3bdc9c6eff61feb0f1a343d78c3d;p=TLD.git - ssh part explained --- diff --git a/git-howto.txt b/git-howto.txt index 767aff9..e238ee4 100644 --- a/git-howto.txt +++ b/git-howto.txt @@ -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?