DEV Community

Peter8015
Peter8015

Posted on

connect to host github.com port 22: Operation timed out

Use port 443 for SSH. GitHub allows you to use the HTTPS port for SSH connections. This usually bypasses 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
  3. Open the config file in your terminal: nano~/.ssh/config
  4. Hostname ssh.github.com Port 443 User git
  • try git push

Top comments (0)