Fixed: AWS CodeCommit Permission Denied issue
When trying to push to the remote repo.
On your local machine, use a text editor to create a config file in the ~/.ssh directory, and then add the following lines to the file, where the value for User is the SSH key ID you copied earlier:
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Host git-codecommit.*.amazonaws.com
User
APKAEIBAERJR2EXAMPLE
IdentityFile ~/.ssh/codecommit_rsa
Comments
Post a Comment