git aws.push 返回错误 403

git aws.push 返回错误 403

我正在为“Elastic Beanstalk”上的应用程序设置 git。我一直在遵循亚马逊提供的说明。

推动更改后,我收到此错误:

git aws.push

error: The requested URL returned error: 403 while accessing https://<Access Key Removed>:20130117T213945Z538f1c7baf8c89b4b547cb6717aabbaa7dfab3c52e0911d71e17b06765b922b2@git.elasticbeanstalk.us-east-1.amazonaws.com/v1/repos/54696d73546573744170706c69636174696f6e/commitid/62323130316462646264373436303536343265633861333035633133633265666466393633303133/environment/54696d7374657374656e7669726f6e6d656e74/info/refs?service=git-receive-pack
fatal: HTTP request failed

这是我的.config文件:

git config -l

credential.helper=osxkeychain
user.name=Tim xxxxxxxxxx
[email protected]
core.bare=false
core.repositoryformatversion=0
core.filemode=true
core.logallrefupdates=true
core.ignorecase=true
aws.endpoint.us-east-1=git.elasticbeanstalk.us-east-1.amazonaws.com
aws.endpoint.ap-northeast-1=git.elasticbeanstalk.ap-northeast-1.amazonaws.com
aws.endpoint.eu-west-1=git.elasticbeanstalk.eu-west-1.amazonaws.com
aws.endpoint.us-west-1=git.elasticbeanstalk.us-west-1.amazonaws.com
aws.endpoint.us-west-2=git.elasticbeanstalk.us-west-2.amazonaws.com
aws.endpoint.ap-southeast-1=git.elasticbeanstalk.ap-southeast-1.amazonaws.com
aws.endpoint.ap-southeast-2=git.elasticbeanstalk.ap-southeast-2.amazonaws.com
aws.endpoint.sa-east-1=git.elasticbeanstalk.sa-east-1.amazonaws.com
alias.aws.elasticbeanstalk.remote=!.git/AWSDevTools/aws.elasticbeanstalk.push --remote-url
alias.aws.elasticbeanstalk.push=!.git/AWSDevTools/aws.elasticbeanstalk.push
alias.aws.elasticbeanstalk.config=!.git/AWSDevTools/aws.elasticbeanstalk.config
alias.aws.push=!git aws.elasticbeanstalk.push
alias.aws.config=!git aws.elasticbeanstalk.config

我真的不知道还要检查什么或做什么,如果我可以为您提供更多信息,请告诉我。

答案1

问题是我没有在安全组中打开 HTTPS (443) 端口。现在调整后一切就绪了。

答案2

就我而言,由于某种原因,我的计算机时间与服务器时间不同步。偶尔会发生这种情况,我在虚拟机中运行 Ubuntu。手动修复了时间,并照常提交。

相关内容