Skip to content

Instantly share code, notes, and snippets.

@codeShaurya
Created November 20, 2018 14:18
Show Gist options
  • Save codeShaurya/7d750e9654f987113c43553d50d855f9 to your computer and use it in GitHub Desktop.
Save codeShaurya/7d750e9654f987113c43553d50d855f9 to your computer and use it in GitHub Desktop.
This gist will help you to redirect your ssh protocol to http whenever 22 port is blocked
# This is for gitlab ssh authentication
Host gitlab.com
Hostname altssh.gitlab.com
User git
Port 443
PreferredAuthentications publickey
IdentityFile ~/.ssh/gitlab
# This is for github ssh authentication
Host github.com
Hostname ssh.github.com
User git
Port 443
PreferredAuthentications publickey
IdentityFile ~/.ssh/gitlab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment