Git: Connection reset by 20.205.243.166 port 22

Posted by : on

Category : random


Add this to your ~\.ssh\config if the github.com - port 22 hasn’t been set properly with the following proxy setting.

Host github.com
  port 22
  User git
  HostName github.com
  PreferredAuthentications publickey
  IdentityFile ~/.ssh/id_rsa
  # 10808 is local socks listening port number, find it in your v2ray / clash setting (through GUI, preferrably)
  ProxyCommand connect -S 127.0.0.1:10808 -a none %h %p

About moomoohorse
moomoohorse

Hi I a Hao Ren. Please know me in mywebsite

Email : haor2@illinois.edu

Website : http://moomoohorse.com

About moomoohorse

Hi, my name is Hao Ren.