ssh protocol git uses ss proxy

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

  1. 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
  2. Turn on the ss proxy, local 127.0.0.1:1080 (test: after the browser configures the proxy, visit google)
  3. 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
  4. 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
  5. glt clone 'xxxxxx'
  6. refer to

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324971261&siteId=291194637