aws codecommit cannot push

后端 未结 1 739
无人共我
无人共我 2021-01-22 20:42

I setup my new repo in aws codecommit. I\'m totally new to this.

I can clone my repo using this

git clone ssh://APKAISIJVIU6XXXXXX@git-codecommit.us-east         


        
相关标签:
1条回答
  • 2021-01-22 21:40

    Do you have multiple public keys in your ~/.ssh directory?

    If you have an id_rsa.pub in ~/.ssh but did not choose to upload that one to the IAM console then you will need to configure your .ssh/config to use the public key that you chose with the user name that you are specifying.

    For example, if you have created and uploaded the public key named codecommit_rsa.pub (per the documentations), then you will need to add the following lines to your ~/.ssh/config

    Host git-codecommit.*.amazonaws.com
      User APKAISIJVIU6XXXXXX
      IdentityFile ~/.ssh/codecommit_rsa
    

    Let me know if this helps!

    Yilun

    0 讨论(0)
提交回复
热议问题