[英]git cap deploy: Permission denied
我在Windows上使用Capistrano(2.15.5)。 我试图通过命令cap deploy
将代码推送到服务器,但由于权限被拒绝(publickey)而出现错误。
我的公共ssh密钥已经添加到git帐户,并且我还将文件的权限设置为600。但是仍然出现此错误。
以下是我的错误。
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
您还可以通过在部署时转发SSH密钥,使用私钥来提取代码,而不是将服务器密钥添加到github中
在您的deploy.rb
ssh_options[:forward_agent] = true
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.