简体   繁体   English

使用 git-codecommit 拒绝 aws 权限(公钥)

[英]aws permission denied (publickey) with git-codecommit

I need to connect to SSH to connect to amazon code-commit so my steps:我需要连接到SSH才能连接到 amazon code-commit所以我的步骤:

  1. create new ssh called: asw-code-commit with asw-code-commit.pub创建名为: asw-code-commitasw-code-commit.pub新 ssh

  2. upload the ssh to asw user IAM and got my SSH key ID将 ssh 上传到 asw 用户 IAM 并获取我的SSH key ID

  3. update config in .ssh folder to this:.ssh文件夹中的配置更新为:

     Host git-codecommit.*.amazonaws.com User APKAV66BIP######## IdentityFile ~/.ssh/aws-code-commit
  4. save and connect to ssh by this:通过以下方式保存并连接到 ssh:

     ssh git-codecommit.us-east-2.amazonaws.com

I got this error:我收到此错误:

no such identity: /Users/Ra/.ssh/aws-code-commit: No such file or directory
APKAV66BI#####@git-codecommit.us-east-2.amazonaws.com: Permission denied (publickey).

Where is the problem ?问题出在哪儿 ?

On the screenshot the file is called ( spelling mistake ):在屏幕截图上,该文件被称为(拼写错误):

asw-code-commit

but it should be:但它应该是:

aws-code-commit

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM