1. Download Http://zwitterion.org/software/ssh-https-tunnel/ssh-https-tunnel to ~/.ssh/ssh-https-tunnel
#!/usr/bin/perl-t-w# Copyright (C) 2001,2002,2008 Mark Suter <[email protected]>## This program tunnels a sec Ure shell connection via a HTTPS proxy as# the Proxycommand program. The destination Secure shell server needs# to being running on port 443 unless the proxy was very lenient.## this program is F Ree software:you can redistribute it and/or modify# it under the terms of the GNU general public License as published by# The free software Foundation, either version 3 of the License, or# (at your option) any later version.# # Distributed in the hope that it'll be useful,# but without any WARRANTY; Without even the implied warranty of# merchantability or FITNESS for A particular PURPOSE. See the# GNU General public License for more details.# # should has received a copy of the GNU General public License # along with this program. If not, see
2.VI~/.ssh/Ssh-https-tunnelSet proxy IP, port;
Use of red Apricot public Welfare: http://hx.gy:1080, support github.com
################################## Start User Configuration ################################### Proxy Detailsmy $host = "Hx.gy"; my $port = 1080;# Basic Proxy authentication-leave empty If you don ' t need itmy $user = ""; my $pass = "";
3. VI ~/.ssh/config
Host github.com proxycommand ~/.ssh/ssh-https-tunnel%h%pport 443 Hostname ssh.github.com
4.add RSA Public key to GitHub
5. Testing
[Email Protected]:ckelsel/virtualbox.git
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Git set HTTP Proxy