当我运行capistrano将代码部署到服务器时,我收到以下错误消息:
...
** Execute git:check
DEBUG[18c8f63a] Running /usr/bin/env git ls-remote -h git@bitbucket.org:name/project.git on 107.170.160.89
DEBUG[18c8f63a] Command: ( GIT_ASKPASS=/bin/echo GIT_SSH=/tmp/project/git-ssh.sh /usr/bin/env git ls-remote -h git@bitbucket.org:name/project.git )
DEBUG[18c8f63a] Permission denied (publickey).
DEBUG[18c8f63a] fatal: The remote end hung up unexpectedly
DEBUG[18c8f63a] Finished in 0.478 seconds with exit status 128 (failed).
我拥有存储库的管理员权限。当我运行 ssh-add -l </ strong>时,我会看到&#34; /Users/adam/.ssh/id_rsa(RSA)&#34;记录。
这里有什么问题?
修改
当我在ubuntu服务器上运行ssh bitbucket.org
时,我得到Permission denied (publickey).