国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

ssh: connect to host github.com port 22: Connection timed out fatal: Could not read from remote……

這篇具有很好參考價(jià)值的文章主要介紹了ssh: connect to host github.com port 22: Connection timed out fatal: Could not read from remote……。希望對(duì)大家有所幫助。如果存在錯(cuò)誤或未考慮完全的地方,請(qǐng)大家不吝賜教,您也可以點(diǎn)擊"舉報(bào)違法"按鈕提交疑問。

報(bào)錯(cuò)

> git pull --tags origin main
ssh: connect to host github.com port 22: Connection timed out
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

分析

登錄了一下github網(wǎng)站,發(fā)現(xiàn)可以訪問:
ssh: connect to host github.com port 22: connection timed out fatal: could n,筆記,ssh,github

但是,ping了一下github,發(fā)現(xiàn)請(qǐng)求超時(shí)。

ssh: connect to host github.com port 22: connection timed out fatal: could n,筆記,ssh,github

git、命令行都無法正確解析域名,但瀏覽器可以,有些奇怪。

但可以判斷,確實(shí)是網(wǎng)絡(luò)域名解析出現(xiàn)了問題,下面將采用手動(dòng)修改hosts文件的方式解決。文章來源地址http://www.zghlxwxcb.cn/news/detail-802040.html

解決

  1. 打開網(wǎng)站:https://www.ipaddress.com/ip-lookup,并在紅框中輸入域名,查詢域名對(duì)應(yīng)的IP地址;
    ssh: connect to host github.com port 22: connection timed out fatal: could n,筆記,ssh,github
  2. 點(diǎn)擊lookup;
  3. 得到對(duì)應(yīng)區(qū)域的github主機(jī)名;
    ssh: connect to host github.com port 22: connection timed out fatal: could n,筆記,ssh,github
  4. 查詢?nèi)缦聝蓚€(gè)主機(jī)名:
140.82.113.3 github.com
146.75.77.194 github.global.ssl.fastly.net
  1. 補(bǔ)充到C:\Windows\System32\drivers\etc\hosts文件的末尾,該文件不可編輯,可以復(fù)制到桌面,然后再復(fù)制回去實(shí)現(xiàn)替換。
    ssh: connect to host github.com port 22: connection timed out fatal: could n,筆記,ssh,github
  2. 測試:
    ssh: connect to host github.com port 22: connection timed out fatal: could n,筆記,ssh,github

到了這里,關(guān)于ssh: connect to host github.com port 22: Connection timed out fatal: Could not read from remote……的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來自互聯(lián)網(wǎng)用戶投稿,該文觀點(diǎn)僅代表作者本人,不代表本站立場。本站僅提供信息存儲(chǔ)空間服務(wù),不擁有所有權(quán),不承擔(dān)相關(guān)法律責(zé)任。如若轉(zhuǎn)載,請(qǐng)注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實(shí)不符,請(qǐng)點(diǎn)擊違法舉報(bào)進(jìn)行投訴反饋,一經(jīng)查實(shí),立即刪除!

領(lǐng)支付寶紅包贊助服務(wù)器費(fèi)用

相關(guān)文章

  • git報(bào)錯(cuò)處理:ssh:connect to host github.com port 22: Connection timed out

    git報(bào)錯(cuò)處理:ssh:connect to host github.com port 22: Connection timed out

    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ò)誤。 所以,問題

    2024年02月11日
    瀏覽(24)
  • Git提交 ssh: connect to host github.com port 22: Connection timed out解決方案

    Git提交 ssh: connect to host github.com port 22: Connection timed out解決方案

    你們好,我是金金金。 之前都是好好的,不知道今天為什么提交代碼就這樣了 根據(jù)英文可以看出,ssh端口號(hào)被拒絕了,22號(hào)端口不行,那就換一個(gè)端口 ssh端口被拒絕 找到.ssh文件,在下面創(chuàng)建一個(gè)config文件,然后記事本打開寫入以下內(nèi)容 成功提交 主要是ssh 22端口被拒絕,我

    2024年01月22日
    瀏覽(21)
  • 【git】解決git報(bào)錯(cuò):ssh:connect to host github.com port 22: Connection timed out 親測有效

    【git】解決git報(bào)錯(cuò):ssh:connect to host github.com port 22: Connection timed out 親測有效

    如題,git使用中突然報(bào)錯(cuò) ssh:connect to host github.com port 22: Connection timed out 通過查閱各種資料,得知原因可能是由于電腦的防火墻或者其他網(wǎng)絡(luò)原因?qū)е聅sh連接方式 端口22被封鎖。 創(chuàng)建一個(gè)config文件 將下面的內(nèi)容復(fù)制進(jìn)去 保存退出 檢查是否成功 這里要根據(jù)它的提示操作,有個(gè)

    2024年02月05日
    瀏覽(23)
  • 解決 Git:ssh: connect to host github.com port 22: Connection timed out 問題的三種方案

    解決 Git:ssh: connect to host github.com port 22: Connection timed out 問題的三種方案

    其一、整體提示為: ssh: connect to host github.com port 22: Connection timed out fatal: Could not read from remote repository. 中文為: ssh:連接到主機(jī) github.com 端口 22:連接超時(shí) fatal:無法從遠(yuǎn)程存儲(chǔ)庫讀取 其二、問題描述為: A、正常的將代碼提交到 git 倉庫的過程: step1、找到要提交 git 的代

    2024年01月25日
    瀏覽(27)
  • 解決ssh:connect to host github.com port 22: Connection timed out與kex_exchange_identification

    解決ssh:connect to host github.com port 22: Connection timed out與kex_exchange_identification

    無法進(jìn)行clone項(xiàng)目和其他Git操作。執(zhí)行檢測連接命令 ssh -T git@github,com 報(bào)錯(cuò) ssh:connect to host github.com port 22: Connection timed out 即:連接22端口超時(shí) 涉及到的文件 : C:UsersJIACHENGER.sshconfig C:UsersJIACHENGER.sshgithub_id_rsa C:UsersJIACHENGER.sshgithub_id_rsa.pub C:UsersJIACHENGER.sshknown_hosts 生成

    2024年02月06日
    瀏覽(20)
  • 終極辦法!connect to host port 22: Connection timed out git@ssh.github.com: Permission denied (publickey

    終極辦法!connect to host port 22: Connection timed out git@ssh.github.com: Permission denied (publickey

    過了個(gè)周末git突然用不了了,在拉代碼的時(shí)候突然報(bào)錯(cuò)連接超時(shí),又報(bào)錯(cuò)說沒有權(quán)限,這就很煩了 在百度了很久以后嘗試了各種辦法,重新生成pub_key,重裝git等等都沒能解決,最后詢問了公司大佬,困擾了一個(gè)上午的問題終于解決了 先說說百度上的解決辦法: 使用命令 s

    2024年02月04日
    瀏覽(19)
  • ssh: connect to host github.com port 22: Connection timed out fatal: Could not read from remote……

    ssh: connect to host github.com port 22: Connection timed out fatal: Could not read from remote……

    登錄了一下github網(wǎng)站,發(fā)現(xiàn)可以訪問: 但是,ping了一下github,發(fā)現(xiàn)請(qǐng)求超時(shí)。 git、命令行都無法正確解析域名,但瀏覽器可以,有些奇怪。 但可以判斷,確實(shí)是網(wǎng)絡(luò)域名解析出現(xiàn)了問題,下面將采用手動(dòng)修改hosts文件的方式解決。 打開網(wǎng)站:https://www.ipaddress.com/ip-lookup,并

    2024年01月18日
    瀏覽(20)
  • Github,gitee配置同一個(gè)ssh key步驟+ssh: connect to host github.com port 22: Connection timed out解決方案(純小白教程)

    Github,gitee配置同一個(gè)ssh key步驟+ssh: connect to host github.com port 22: Connection timed out解決方案(純小白教程)

    不要看內(nèi)容太長,因?yàn)椴辶撕枚鄨D片,只是為了每個(gè)步驟都清清楚楚 ?? 每當(dāng)新解決一個(gè)問題的時(shí)候就盡量把他記錄下來,因?yàn)檫^不了多久就會(huì)忘記,回過來看自己的文章記錄是常常有的事情 今天把Github配置ssh key的起因是因?yàn)樵趃ithub上下載別人的項(xiàng)目,之前就只是會(huì)用 Dow

    2024年01月25日
    瀏覽(28)
  • ssh: connect to host github.com port 22: Connection timed out fatal: Could not read from remote repo

    ssh: connect to host github.com port 22: Connection timed out fatal: Could not read from remote repo

    問題描述: 在使用Git將本地倉庫推送到遠(yuǎn)程倉庫的時(shí)候,發(fā)生了如下錯(cuò)誤:“fatal: Could not read from remote repository.” 1、首先輸入以下命令檢查SSH是否能夠連接成功(ssh后面有空格) 發(fā)現(xiàn)報(bào)錯(cuò):端口連接超時(shí)。 解決方案(親測有效) 在C盤——用戶——你的主機(jī)名文件夾中找到

    2024年01月20日
    瀏覽(23)
  • $ git push ssh: connect to host github.com port 22: Connection timed out fatal: Could not read from

    之前都好好的,今天 git push 突然出現(xiàn)這個(gè)問題 解決方法一:改用HTTP協(xié)議(我沒試過,應(yīng)該是可以的) 就是把遠(yuǎn)程庫地址改成HTTP協(xié)議的,好像是這個(gè)命令,自己搜一下 git remote set-url origin https://username@github.com/username/repository.git 解決方法二:更改SSH端口 (親測可用) 先試試

    2024年01月20日
    瀏覽(28)

覺得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請(qǐng)作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包