AWS CodeCommit SSH Key ID
Working on AWS CodeCommit today, I setup SSH access to the repository. During
the initial configuration I provided the SSH public key in the AWS Console, but
then couldn’t connect to my repository. In the brief instructions on the IAM
Console page they tell you how to update your
~/.ssh/config file, but the
example doesn’t explicitly say what the IdentityFile is supposed to be set to.
In the more detailed instructions they do specify the IdentityFile should
reference your private key, not your public key.
For others who are confused about this, and my future self, here’s the AWS documentation for how to configure SSH Key ID for CodeCommit.