Can't access AWS CodeCommit with SSH Can't access AWS CodeCommit with SSH git git

Can't access AWS CodeCommit with SSH


It looks like you missed a step in setting up SSH. You need to add this information to your .ssh/config file:

Host git-codecommit.us-east-1.amazonaws.com   User Your-SSH-Key-ID, such as APKAEIBAERJR2EXAMPLE   IdentityFile Your-Private-Key-File, such as ~/.ssh/codecommit_rsa or ~/.ssh/id_rsa

You can get Your-SSH-Key-ID from the IAM console.


My case was a bit different.

The "Security credentials" tab has both "Access keys" and "SSH keys for AWS CodeCommit". Make sure you're using the CodeCommit key id.


Make sure the config file is not saved as txt file and use SSH Key ID, not Access