我在使用capistrano进行部署时获得了权限被拒绝
错误:
DEBUG [0203645e] Command: ( GIT_ASKPASS=/bin/echo GIT_SSH=/tmp/xxx/git-ssh.sh /usr/bin/env git ls-remote git@github.com:yyy/xxx )
DEBUG [0203645e] Permission denied (publickey).
DEBUG [0203645e]
DEBUG [0203645e] fatal: The remote end hung up unexpectedly
DEBUG [0203645e]
DEBUG [0203645e] Finished in 5.938 seconds with exit status 128 (failed).
我的ssh密钥在服务器和git中可用(两个地方都有相同的密钥
我之前能够推进 如果需要更多信息,请告诉我。