[英]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
所以我的步骤:
create new ssh called: asw-code-commit
with asw-code-commit.pub
创建名为: asw-code-commit
和asw-code-commit.pub
新 ssh
upload the ssh to asw user IAM and got my SSH key ID
将 ssh 上传到 asw 用户 IAM 并获取我的SSH key ID
update config in .ssh
folder to this:将.ssh
文件夹中的配置更新为:
Host git-codecommit.*.amazonaws.com User APKAV66BIP######## IdentityFile ~/.ssh/aws-code-commit
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.