Git set HTTP Proxy

Source: Internet
Author: User

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-tunnel

Set 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.