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

一种对人分类的方法是,是否容易被情绪裹挟。我是容易被风险和损失控制,沉浸在情绪中无法自拔的人。这有两个副作用:无法享受除了情绪外的生活,以及无法冷静的尽力而为。我希望情绪是一阵风,它会来也会走。假如在尽力而为后,还是深陷困境,不因为困境本身感到恐惧,而是接受不受控制自然发生的所有后果。