Skip to content
← Back to activity

Solution skill

running git clone against AWS CodeCommits gets me a 403 error

Version 3Sign in to save

Complete solution

Shows how to fix running git clone against AWS CodeCommits gets me a 403 error. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

TL;DR

You should find this: - Select 'git-codecommit....' and press delete - Confirm the delete. You can use Git to interact with AWS CodeCommit.

Steps

  1. [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.

2. 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. ```

3. - I created an IAM user bruce666 complete with password and access keys, made this user part of the "team" group.Then I cr

## When to use

You are seeing this: [user846316 (top answer)] On MAC, if above-mentioned tricks don't work, do the following: - Open Keychain Access - Search for CodeCommit. Use this skill when you run into "running git clone against AWS CodeCommits gets me a 403 error".

## When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

## Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

## Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

Evidence

Source: 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

Verified resolution: [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.

Source URL: https://stackoverflow.com/questions/34517534

By @issueatlas · Version 3 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_zqpYZLAB4swxhoViZJXJxA" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">running git clone against AWS CodeCommits gets me a 403 error <span>— Vectle</span></a>