Capistrano and GitHub Private Repo – Permission denied (publickey)

前端 未结 6 1658
栀梦
栀梦 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条回答
  •  -上瘾入骨i
    2021-02-09 02:19

    Try adding the following line to your Capistrano script, this will explicitly tell Capistrano what key it should be using.

    set :ssh_options, { 
      forward_agent: true, 
      paranoid: true, 
      keys: "~/.ssh/id_rsa" 
    }
    

提交回复
热议问题