小编Dan*_*Dan的帖子

无法使用SSH访问AWS CodeCommit

在确定如何使AWS CodeCommit与标准SSH身份验证协同工作时遇到极其困难的时间.看到这样的另一个话题,但没有答案,我不能发表评论.这是在Windows上使用Git Bash.

Repro步骤

  1. 创建具有完全权限的IAM用户(AwsAdministrator)
  2. 来自〜/ .ssh的Git Bash
  3. "cat id_rsa.pub"并将输出复制到剪贴板
  4. 在IAM控制台中,单击按钮添加SSH密钥并粘贴到输入字段中.单击保存.
  5. 尝试访问CodeCommit仓库(在这种情况下尝试推送)并获得"权限被拒绝".

Git + SSH输出

这是我从SSH获得的DEBUG3日志记录:

debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /c/Users/Dan/.ssh/id_rsa
debug3: send_pubkey_test
debug2: we sent a publickey packet, wait for reply
debug1: Server accepts key: pkalg ssh-rsa blen 535
debug2: input_userauth_pk_ok: fp SHA256:<omitted>
debug3: sign_and_send_pubkey: RSA SHA256:<same-as-above>
debug1: Authentications that can continue: publickey
debug2: we did not send a packet, disable method
debug1: No more authentication methods to try.
Permission …
Run Code Online (Sandbox Code Playgroud)

git ssh aws-codecommit

5
推荐指数
4
解决办法
5830
查看次数

标签 统计

aws-codecommit ×1

git ×1

ssh ×1