Github未在Ubuntu 18.04上加载



由于某种原因,我无法以任何方式在Ubuntu 18.04机器上加载Github。我试过Crome和Firefox。我已经尝试使用-取消设置代理

git config --global --unset http.proxy
git config --global --unset https.proxy

我还尝试将其设置为空白

git config --global http.proxy ""
git config --global https.proxy ""

我尝试过清除缓存,手动删除并重新创建主文件夹中的.gitconf文件。但似乎什么都不起作用。此外,git克隆请求不会从命令行执行。该站点只是简单地声明连接已超时。

我终于尝试了wireshark来获取连接信息。当我从github.com输入任何url时,它都不会给出任何信息。几分钟后,当我得到超时错误时,我从wireshark-得到了这个

No.     Time           Source                Destination           Protocol Length Info
205 115.210340122  192.168.29.136        35.224.99.156         TCP      74     54616 → 80 [SYN] Seq=0 Win=64240 Len=0 MSS=1460 SACK_PERM=1 TSval=1144885874 TSecr=0 WS=128
Frame 205: 74 bytes on wire (592 bits), 74 bytes captured (592 bits) on interface 0
Ethernet II, Src: D-LinkIn_ac:e5:4a (78:32:1b:ac:e5:4a), Dst: 14:ae:85:e1:09:98 (14:ae:85:e1:09:98)
Internet Protocol Version 4, Src: 192.168.29.136, Dst: 35.224.99.156
Transmission Control Protocol, Src Port: 54616, Dst Port: 80, Seq: 0, Len: 0
No.     Time           Source                Destination           Protocol Length Info
214 116.211223359  192.168.29.136        35.224.99.156         TCP      74     [TCP Retransmission] 54616 → 80 [SYN] Seq=0 Win=64240 Len=0 MSS=1460 SACK_PERM=1 TSval=1144886875 TSecr=0 WS=128
Frame 214: 74 bytes on wire (592 bits), 74 bytes captured (592 bits) on interface 0
Ethernet II, Src: D-LinkIn_ac:e5:4a (78:32:1b:ac:e5:4a), Dst: 14:ae:85:e1:09:98 (14:ae:85:e1:09:98)
Internet Protocol Version 4, Src: 192.168.29.136, Dst: 35.224.99.156
Transmission Control Protocol, Src Port: 54616, Dst Port: 80, Seq: 0, Len: 0
No.     Time           Source                Destination           Protocol Length Info
215 118.227149032  192.168.29.136        35.224.99.156         TCP      74     [TCP Retransmission] 54616 → 80 [SYN] Seq=0 Win=64240 Len=0 MSS=1460 SACK_PERM=1 TSval=1144888891 TSecr=0 WS=128
Frame 215: 74 bytes on wire (592 bits), 74 bytes captured (592 bits) on interface 0
Ethernet II, Src: D-LinkIn_ac:e5:4a (78:32:1b:ac:e5:4a), Dst: 14:ae:85:e1:09:98 (14:ae:85:e1:09:98)
Internet Protocol Version 4, Src: 192.168.29.136, Dst: 35.224.99.156
Transmission Control Protocol, Src Port: 54616, Dst Port: 80, Seq: 0, Len: 0
No.     Time           Source                Destination           Protocol Length Info
220 122.387150649  192.168.29.136        35.224.99.156         TCP      74     [TCP Retransmission] 54616 → 80 [SYN] Seq=0 Win=64240 Len=0 MSS=1460 SACK_PERM=1 TSval=1144893051 TSecr=0 WS=128
Frame 220: 74 bytes on wire (592 bits), 74 bytes captured (592 bits) on interface 0
Ethernet II, Src: D-LinkIn_ac:e5:4a (78:32:1b:ac:e5:4a), Dst: 14:ae:85:e1:09:98 (14:ae:85:e1:09:98)
Internet Protocol Version 4, Src: 192.168.29.136, Dst: 35.224.99.156
Transmission Control Protocol, Src Port: 54616, Dst Port: 80, Seq: 0, Len: 0
No.     Time           Source                Destination           Protocol Length Info
227 130.706783205  192.168.29.136        35.224.99.156         TCP      74     [TCP Retransmission] 54616 → 80 [SYN] Seq=0 Win=64240 Len=0 MSS=1460 SACK_PERM=1 TSval=1144901243 TSecr=0 WS=128
Frame 227: 74 bytes on wire (592 bits), 74 bytes captured (592 bits) on interface 0
Ethernet II, Src: D-LinkIn_ac:e5:4a (78:32:1b:ac:e5:4a), Dst: 14:ae:85:e1:09:98 (14:ae:85:e1:09:98)
Internet Protocol Version 4, Src: 192.168.29.136, Dst: 35.224.99.156
Transmission Control Protocol, Src Port: 54616, Dst Port: 80, Seq: 0, Len: 0

请帮忙。

不知道如何使用ssh。

只需尝试

ssh -Tv git@github.com
git ls-remote git@github.com:<me>/<myRepo>

如果它不起作用,那可能意味着你无法联系github.com。

检查您的环境变量是否与代理有关

env|grep -i proxy

最新更新