git for aws codecommit

for git ssh connection to AWS code commit, after uploading the public key, the trick is to have a specific config file to tell the user/public_key_id to associate with code commit

  1. upload the existing ssh key

run `cat ~/.ssh/id_rsa.pub| pbcopy

`

2. add the special conf file

3. then run ssh git-codecommit.us-east-2.amazonaws.com for testing

ref: https://docs.aws.amazon.com/codecommit/latest/userguide/setting-up-ssh-unixes.html

Leave a comment