Github Push/Pull 失败的问题
git报错Failed to connect to github.com port 443 after 31421ms: Timed out
场景:
在git clone/push/pull
时,一直报错Failed to connect to github.com port 443 after xxxms: Timed out
解决方式
git配置proxy的命令:
# 配置socks5/ssr代理
git config --global http.proxy socks5/socks5h 127.0.0.1:1086
git config --global https.proxy socks5/socks5h 127.0.0.1:1086
# 配置http代理
git config --global http.proxy 127.0.0.1:7890
git config --global https.proxy 127.0.0.1:7890
验证
dongjiang@MacBook Pro:~ $ ping ssh.github.com
PING ssh.github.com (20.205.243.160): 56 data bytes
64 bytes from 20.205.243.160: icmp_seq=0 ttl=108 time=126.246 ms
64 bytes from 20.205.243.160: icmp_seq=1 ttl=108 time=139.719 ms
64 bytes from 20.205.243.160: icmp_seq=2 ttl=108 time=105.197 ms
64 bytes from 20.205.243.160: icmp_seq=3 ttl=108 time=125.357 ms
「如果这篇文章对你有用,请随意打赏」
FEATURED TAGS
agent
apiserver
application
bandwidth-limit
cgo
cgroupfs
ci/cd
client-go
cloudnative
cncf
cni
community
container
container-network-interface
containerd
controller
coredns
crd
custom-controller
deployment
docker
docker-build
docker-image
drop
ebpf
ecology
egress
etcd
gitee
github
gitlab
golang
governance
hpa
http2
image
ingress
iptables
jobs
kata
kata-runtime
kernel
kind
kubelet
kubenetes
kubernetes
library
linux-os
logging
loki
metrics
monitor
namespace
network
network-troubleshooting
node
nodeport
pingmesh
pod
prestop
prometheus
proxyless
pvc
rollingupdate
schedule
scheduler
serverless
sidecar
sigtrem
systemd
throttling
timeout
tools
traceroute