git SSH proxy set under Linux

Source: Internet
Author: User

/root/.ssh (The following is the root permission operation)

1. Generate key.

$ ssh-keygen

All the way to the return, until the Id_rsa is generated, id_rsa.pub

1.1 chmod Id_rsa.pub

2. Modify the/etc/ssh/ssh_config file (root user)//normal user Vim ~/.ssh/config (no new file)

Increase

Host github.com *.github.com   proxycommand connect-proxy-h web-proxy.oa.com:8080%h%p   #设置代理   identityfile ~/.ssh/id_rsa   User git

3. Installing Connect-proxy

3.1. rpm File Download

Http://rpm.pbone.net/index.php3?stat=3&search=connect-proxy&srodzaj=3

3.2. RPM Installation

Http://www.discuz.net/thread-3513163-1-1.html

4.1 Put your id_rsa.pub (space, nothing move, copy to git SSH key setting)

Test validation

5. ssh-v-T [email protected]

git SSH proxy set under Linux

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.