Fix: ssh: connect to host github.com port 22: Connection timed out


A terminal showing an SSH connection to github.com on port 22 timing out.

Your network blocks SSH on port 22, not your key. Route GitHub over ssh.github.com on port 443, make it permanent in ssh config, and verify with git.

Fix: Support for Password Authentication Was Removed


A terminal showing a git push rejected because password authentication is not supported.

GitHub rejects your Git password over HTTPS. Switch the remote to SSH, or create a personal access token and store it, so pushes stop asking.

Fix: Too Many Authentication Failures


A terminal showing an SSH connection disconnected for too many authentication failures.

SSH offers every key you own and the server cuts you off after six. Pin one key with IdentitiesOnly, and learn why GitHub gives a different error.

Fix: Push Declined Due to Email Privacy Restrictions


GitHub rejects the push because your commit email is private. Set the GitHub noreply address, repair the commits you already made, and push again.