Friday, December 12, 2008

Capistrano and Git problems

If you get this error when deploying with Capistrano:

ERROR:gitosis.serve.main:Repository read access denied

You may solve it with:

ssh-add ~/.ssh/id_rsa


This is needed because my ssh config is configured to forward my identity to the deployment machine (with ForwardAgent yes) so the ssh agent must know my private key.

0 comments: