`remote: Permission to org/repo.git denied to user.` then `The requested URL returned error: 403`
IntermediateTroubleshootingAuthentication and Remote Access
Answer
Likely causes → Your account has read-only access, the token has no write scope, or an org policy restricts classic tokens.
Diagnose →
gh api repos/ORG/REPO --jq .permissions
gh auth status
Fix → Ask for write access, or create a fine-grained token with "Contents: Read and write" for that repo, and authorise SSO if required. If you only have read access, push to a fork and open a PR.
Prevent → Grant access through teams, not individuals.
More on Authentication and Remote Access
`[email protected]: Permission denied (publickey).` followed by `fatal: Could not read from remote repository.`Beginner`remote: Support for password authentication was removed on August 13, 2021.`Beginner`fatal: Authentication failed for 'https://github.com/org/repo.git/'` with a token that worked last month.Beginner`WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!` when connecting to GitHub over SSH.Intermediate`remote: Repository not found.` for a repo you can open in the browser.Beginner`ssh -T [email protected]` says "Hi someone-else!" but you need your work account.Intermediate