Capistrano and GitHub Private Repo – Permission denied (publickey)

前端 未结 6 1676
栀梦
栀梦 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条回答
  •  抹茶落季
    2021-02-09 02:16

    Today I found the root cause on MAC. My ssh key was not added to the authentication agent so the key was not forwarded. The solution was to execute the following command:

     ssh-add ~/.ssh/id_dsa
    

    (or ssh-add ~/.ssh/id_rsa if you use rsa key)

    To remove all the ssh keys added to agent

    ssh-add -D
    

提交回复
热议问题