foreword
- I don't know what is the detour of ss
- request account bypass
- This is just a pro test of git under the ssh protocol, how to judge what protocol is going out and turn left
Determine whether an agent is required
- The problem I'm having is: ssh_exchange_identification: read: Connection reset by peer
- You can try various operations such as ping, browser access, ssh -T, etc. You can consider changing the network in the middle, there is always one suitable for you
dry goods
- First of all, you need to have an agent: (the agent can use ssh directly, or ss (recommended: stable and not disconnected, anti-monitoring)), how to set up a proxy server, or buy an account, is not within the scope of discussion
- Turn on the ss proxy, local 127.0.0.1:1080 (test: after the browser configures the proxy, visit google)
- Download a tool wget https://raw.githubusercontent.com/bronzeee/ssh_connect/master/connect.c to the specified directory (mine is in ~/applications)
- Execute the command gcc -o connect connect.c to compile it into an executable file
- I have tested and used the nc tool without success
Create or open the ~/.ssh/config file and add the following
Host git.gupaoedu.com Hostname git.gupaoedu.com User git ProxyCommand ~/applications/connect -S 127.0.0.1:1080 %h %p
- glt clone 'xxxxxx'
- refer to