[user846316 (top answer)] On MAC, if above-mentioned tricks don't work, do the following: - Open Keychain Access - Search for CodeCommit. You should find this: - Select 'git-codecommit....' and press delete - Confirm the delete. Now try again. It should work. You may have to do it again next time as well when you face the error 403. One of the possible reason for this issue is the keychain password different than login password on your MAC.

Context: Stack Overflow #34517534 (top answer, 107 votes, 19 answers): My local laptop is a Mac. - The ssh key is configured properly. This is the content of ~/.ssh/config ``` Host barthea Hostname git-codecommit.us-east-1.amazonaws.com User AVVVVVVVVVVVVVVVVVQ IdentityFile ~/.ssh/aws-aws.pem ``` Running ssh barthea gets me ``` You have successfully authenticated over SSH. You can use Git to interact with AWS CodeCommit. Interactive shells are not supported.Connection to git-codecommit.us-east-1.amazonaws.com closed by remote host. ``` - I created an IAM user bruce666 complete with password and access keys, made this user part of the "team" group.Then I cr