报错内容为:
ssh: connect to host github.com port 22: Connection refused
首先在ipaddress上查找github.com的IP地址:
比如:
将查到的IP地址和映射加入本地host文件:
140.82.112.4 github.com
windows下host文件的默认文件夹地址为:
C:\Windows\System32\drivers\etc
ssh: connect to host github.com port 22: Connection refused
140.82.112.4 github.com
C:\Windows\System32\drivers\etc