gitolite and ssh |
SSH Information
I have a private key, ~/.ssh/ida_rsa_gitolite, in lab. I have already added my public key to gitolite. I also have an ssh configuration file in ~/.ssh/config file in lab.
mvelez@lab:~/.ssh$ cat config
host gitolite
user git
hostname host.name.com
identityfile ~/.ssh/id_rsa_gitolite
I can use the 'gitolite' alias.
mvelez@lab:~$ ssh -T gitolite
hello mvelez, this is git@server running gitolite3 v3.03-29-g3c0f177 on git 1.7.9.5
R W gitolite-admin
R W testing
And I can use git@host.name.com directly.
mvelez@lab:~$ ssh -T git@host.name.com
hello mvelez, this is git@server running gitolite3 v3.03-29-g3c0f177 on git 1.7.9.5
R W gitolite-admin
R W testing
What I really care about is being able to do this.hello mvelez, this is git@server running gitolite3 v3.03-29-g3c0f177 on git 1.7.9.5
R W gitolite-admin
R W testing
mvelez@eden:~$ git clone git@host.name.com:gitolite-admin
Cloning into 'gitolite-admin'...
remote: Counting objects: 132, done.
remote: Compressing objects: 100% (118/118), done.
remote: Total 132 (delta 18), reused 0 (delta 0)
Receiving objects: 100% (132/132), 30.35 KiB, done.
Resolving deltas: 100% (18/18), done.
Questions:
1) Do I have to run 'ssh-add ~/.ssh/id_rsa_gitolite'?