MacBook through SSH proxy to access restricted git services

Source: Internet
Author: User
Tags git clone proxychains macbook

Install proxychains-ng First:

Brew Install Proxychains-ng

The public key is then uploaded to the server, and a Authorized_keys file is created under ~/.ssh for no-login processing

Cat id_rsa.pub >> authorized_keys

Local editing

Vim ~/.ssh/config

#代理服务器

Host PROXYVM

HostName 192.168.8.7

Identityfile ~/.ssh/id_rsa

User Ubuntu

Port 22

#git服务器

Host 192.168.9.9

HostName 192.168.9.9

Identityfile ~/.ssh/id_rsa

User git

Proxycommand ssh proxyvm -W%h:%p

Save

You can now pass

git clone [email protected]:p Ro.git

Clone works and submitted.


MacBook through SSH proxy to access restricted git services

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.