Skip to content

Instantly share code, notes, and snippets.

@snowdream
Created August 8, 2014 17:06
Show Gist options
  • Save snowdream/5c074ee18e6066f52622 to your computer and use it in GitHub Desktop.
Save snowdream/5c074ee18e6066f52622 to your computer and use it in GitHub Desktop.
Enabling SSH connections over HTTPS
If you are able to SSH into `git@ssh.github.com` over port 443, you can override your SSH settings to force any connection to github.com to run though that server and port.
To set this in your ssh config, edit the file at `~/.ssh/config`, and add this section:
Host github.com
Hostname ssh.github.com
Port 443
You can test that this works by connecting once more to github.com:
ssh -T git@github.com
# Hi username! You've successfully authenticated, but GitHub does not
# provide shell access.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment