From 3c97b300bf1a3bdc9c6eff61feb0f1a343d78c3d Mon Sep 17 00:00:00 2001 From: Marcin Rybak Date: Tue, 29 Nov 2011 13:29:08 +0100 Subject: [PATCH] - ssh part explained --- git-howto.txt | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) 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? -- 2.46.0