天天看點

CentsOS版本 git出現443

關于git push/git clone/ping www.github.com失敗的問題

昨天打算git push一下自己虛拟機上的代碼出現了下面狀态

[[email protected] Linux]$ git push
fatal: unable to access 'https://github.com/Amos-Q/Linux.git/': Failed connect to github.com:443; Connection refused

           

同樣ping也不通

[[email protected] Linux]$ ping www.github.com
PING github.com (13.229.188.59) 56(84) bytes of data.
^C
--- github.com ping statistics ---
2 packets transmitted, 0 received, 100% packet loss, time 1000ms

           
網上很多什麼修改代理/删除代理,還有什麼修改/etc/hosts檔案都失敗了

!!!!!最後找到一句代碼指令就ok了:切換到root模式或者直接sudo

[[email protected] Linux]$ sudo yum -y update nss
           

然後就好了

[[email protected] Linux]$ git push
Username for 'https://github.com': 
Password for 'https://[email protected]': 
Everything up-to-date

           

繼續閱讀