running git clone against AWS CodeCommits gets me a 403 error

后端 未结 13 784
没有蜡笔的小新
没有蜡笔的小新 2021-01-31 14:56

My local laptop is a Mac.

  1. The ssh key is configured properly. This is the content of ~/.ssh/config

    Host barthea Hostname git-codecommit.us-east

13条回答
  •  终归单人心
    2021-01-31 15:28

    For me the root cause of getting the error was that no matter which version of git I was using on OSX, GIT was always picking up the credential.helper config of using osxkeychain from the file:

    /Applications/Xcode.app/Contents/Developer/usr/share/git-core/gitconfig
    

    Getting rid of this solved the problem for me and has not broken anything.

提交回复
热议问题