I'm trying to use AWS CodeCommit on Windows 10 with GIT and openSSH. I can successfully connect with Putty but I don't want to use it. I created a key in ~/.ssh/id_rsa and uploaded it to AWS Console. So if I try to connect with ssh in GitBash than it works.
$ ssh git-codecommit.us-east-1.amazonaws.com
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.
Connection to git-codecommit.us-east-1.amazonaws.com closed.
But if I try to pull it doesn't work.
$ git pull
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
I checked my SSH Key ID, it's correct.
$ git remote -v
origin ssh:/***********@git-codecommit.us-east-1.amazonaws.com/v1/repos/myrepo (fetch)
origin ssh:/***********@git-codecommit.us-east-1.amazonaws.com/v1/repos/myrepo (push)
SSH connection seams also to work with my SSH Key ID:
$ ssh ***********@git-codecommit.us-east-1.amazonaws.com
I successfully configured it on another Windows PC for a week.
Does anybody have the same issue? Any Idea what can be wrong?