一、背景
git 在上傳、下載 文件的時(shí)候,報(bào)錯(cuò)。
報(bào)錯(cuò)信息:
ssh:connect to host github.com port 22: Connection timed out
提示這個(gè)域名github.com port 的22 端口,鏈接超時(shí)。
我直接訪問github.com 這個(gè)域名是可以訪問的,ping 也是可以ping通的。
使用telnet 鏈接github.com 的22 端口,報(bào)超時(shí)錯(cuò)誤。
telnet xx.xx.xx 22
所以,問題就在這個(gè)22端口上。
二、解決辦法
我原來使用的ssh鏈接方式,會(huì)報(bào)這個(gè)錯(cuò)誤。
改成http ,就可以了。
在github上,把ssh 改成 http 。
文章來源:http://www.zghlxwxcb.cn/news/detail-509201.html
?上傳 和下載 也是用http的方式。文章來源地址http://www.zghlxwxcb.cn/news/detail-509201.html
git clone http://xxx.xxx.com/xxxxx.git
到了這里,關(guān)于git報(bào)錯(cuò)處理:ssh:connect to host github.com port 22: Connection timed out的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!