Capistrano and GitHub Private Repo – Permission denied (publickey)

前端 未结 6 1687
栀梦
栀梦 2021-02-09 01:31

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

6条回答
  •  Happy的楠姐
    2021-02-09 02:20

    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
    

提交回复
热议问题