I\'ve inherited a Rails project, hosted on Linode.
The previous developer was using a BitBucket repository, along with Capistrano for deployments.
I\'ve since
Similarly I could SSH from dev machine to the staging machine and also SSH from staging machine to github.com.
However cap deploy failed doing the git clone
Permission denied (publickey).
however the git ls-remote worked which is strange.
If I added this to my config on the staging machine it works
Host github.com
Hostname github.com
IdentityFile ~/.ssh/git
User git