我正在部署rubyonrails项目并在使用“上限分段部署”时出现以下错误:
Command: ( export GIT_ASKPASS="/bin/echo" GIT_SSH="/tmp/icare/git-ssh.sh" ;
/usr/bin/env git ls-remote --heads ssh://github.com/RaghavVishnoi/icare.git )
DEBUG [a492d051] Permission denied (publickey).
DEBUG [a492d051]
DEBUG [a492d051] fatal: Could not read from remote repository.
DEBUG [a492d051]
DEBUG [a492d051]
DEBUG [a492d051] Please make sure you have the correct access rights
DEBUG [a492d051]
DEBUG [a492d051] and the repository exists.
DEBUG [a492d051]
(Backtrace restricted to imported tasks)
cap aborted!
SSHKit::Runner::ExecuteError: Exception while executing as
deploy@54.213.40.141: git exit status: 128
git stdout: Permission denied (publickey).