git push - port 22: Operation timed out
13:34 17 Dec 2025

Use port 443 for SSH. Github allows you to use https port for SSH connections. This usually by passes most firewall restrictions.

  1. Test the connection to port 443: ssh -T -p 443 git@ssh.github.com

if you see usename! You've successfully authenticated. The connection is working. 2. Modify your SSH configuration

  • Open the config file in your terminal: nano~/.ssh/config
  • Paste the following
    Hostname ssh.github.com
    Port 443
    User git  
    
  • try git push
github ssh git-push