`remote: Repository not found.` for a repo you can open in the browser.
BeginnerTroubleshootingAuthentication and Remote Access
Answer
Likely causes → GitHub returns "not found" for private repos you cannot access. Usually the wrong account or token is used, or the repo was renamed or transferred.
Diagnose →
git remote -v
ssh -T [email protected] # which user are you?
gh auth status # which account is gh using?
Fix → Authenticate as the user who has access, fix the URL (git remote set-url origin ...), and for orgs authorise the token or key for SSO.
Prevent → Use one credential per host, or per-directory identities with includeIf.
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`ssh -T [email protected]` says "Hi someone-else!" but you need your work account.Intermediate`ssh: connect to host github.com port 22: Connection timed out` on a corporate or hotel network.Intermediate