一、安装 corkscrew
$ sudo apt-get install corkscrew
二、配置 ssh
# Format:
# host <alias>
# hostname <FQDN or IP access>
# user <remote user>
# port <remote port>
# IdentityFile <local path to private key file>
ProxyCommand /usr/bin/corkscrew <ip_address> <port> %h %p
# Github access
Host github.com
Hostname ssh.github.com
Port 443
# Bitbucket.orgs
host bitbucket.org
hostname altssh.bitbucket.org
Port 443