Interview Prep/Git & GitHub/Authentication and Remote Access

`ssh: connect to host github.com port 22: Connection timed out` on a corporate or hotel network.

IntermediateTroubleshootingAuthentication and Remote Access
Answer

Likely causes → Outbound port 22 is blocked by a firewall.

Diagnose →

nc -vz github.com 22
nc -vz ssh.github.com 443

Fix → GitHub accepts SSH on port 443 via ssh.github.com. In ~/.ssh/config:

Host github.com
  Hostname ssh.github.com
  Port 443
  User git

Verify with ssh -T [email protected].

Prevent → Commit this snippet to your team's setup guide for restricted networks.

All Git & GitHub questions Roadmap: Git & GitHub

More on Authentication and Remote Access