So to start, here's my environment:
First off, I have been following
in order to set up gitosis.
Second, I'm on OSX running a Ubuntu 9.10 2.6.31-19-server virtual
machine in VMFusion which I'm using as my remote test server. I have
git 18.104.22.168 installed on both my local box and the VM. I have gitosis
installed on the VM and setup according to the article I mentioned
which, to the best of my knowledge, is all correct.
I created a repo called my_app and ran through the steps in the
article to set up 3 separate branches, etc. because I am in fact doing
this all for a drupal site. I've generated the ssh keys for my local
machine and the vm, edited the gitosis.conf and added the .pub files
to keydir/ at least 4 times already. I've also cleared the
known_hosts file on my box and the VM several times and ssh'd back
into the VM in order to generate the known_hosts file again just to be
Up until now, everything is working. Doing a push from local to
remote server is fine. However, I want to have a clone of the
production branch of the repo in /var/www/apps/my_app or something of
the like in order to view/test changes quickly. To try and accomplish
this, I went into /var/www/apps and ran "git clone
g...@remote_server_ip:my_app.git." At first I was having some issues
with this, but I eventually was able to successfully clone the repo
Next I went into /home/git/repositores/my_app.git/hooks and enabled/
updated the post-update hook. This is what I currently have inside of
it (it's also executable already):
cd $HOME || exit
cd $HOME/../../var/www/apps/my_app &&
git pull origin production
I'll be honest, I'm not completely sure what that is all doing; I just
found it in some other article. I do kinda know that unset GIT_DIR
needs to be there in order to get to anywhere else though.
Now back on my local box I make a change and do "git push" only to hit
this wall: "error: cannot open .git/FETCH_HEAD: Permission denied."
So now I go to /var/www/app/ and do "chmod -R git:git my_app" in hopes
of fixing my issue.
Back on my local box, I make another change, push, and now I get "Host
key verification failed."
And this is where I've been for the last 4 hours. I'm totally
confused and am short on time, so if anyone has any insight on this
issue, I would greatly appreciate it because I'm at a loss here.
You received this message because you are subscribed to the Google Groups "Git
for human beings" group.
To post to this group, send email to git-us...@googlegroups.com.
To unsubscribe from this group, send email to
For more options, visit this group at