I try to setup a git repository on my linux-box (Debian). I want to clone the git repo on my osx Lion. I installed gitosis, create a rsa key my computer (git_rsa), put it to the server, and init gitosis. I have a ~/.ssh/config file because the ssh port isn't the default. I added the git_rsa key to my keychain too. My ~/.ssh/config looks like
Host git
HostName mydomain.com
Port 54321
Identityfile ~/.ssh/git_rsa
User git
when I try to clone the admin repo:
git clone git:gitosis-admin.git
I gave: Permission denied (publickey). fatal: The remote end hung up unexpectedly What is the problem? (The key is chmoded to 700 and ssh is work perfectly with the same key but another user)
Someone can give me a hint how can I resolve this problem?
Thanks in advance.