`git clone` over HTTPS works, but the SSH URL fails with `Permission denied` or a timeout.
IntermediateTroubleshootingAuthentication and Remote Access
Answer
Likely causes → Port 22 is blocked, no SSH key is registered, or the key belongs to an account without access. HTTPS uses a different credential path.
Diagnose →
ssh -vT [email protected]
nc -vz github.com 22
Fix → Use port 443 (ssh.github.com, see Q7), add the right key, or stay on HTTPS with a credential helper.
Prevent → Standardise on one protocol per team and document it.
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