Interview Prep/Git & GitHub/Authentication and Remote Access

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

All Git & GitHub questions Roadmap: Git & GitHub

More on Authentication and Remote Access