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

Git推送到Guthub錯誤:ssh: connect to host github.com port 22: Connection refused

這篇具有很好參考價值的文章主要介紹了Git推送到Guthub錯誤:ssh: connect to host github.com port 22: Connection refused。希望對大家有所幫助。如果存在錯誤或未考慮完全的地方,請大家不吝賜教,您也可以點擊"舉報違法"按鈕提交疑問。

背景

可能是中國內地網(wǎng)絡環(huán)境的原因,Git通過ssh推送到自己的存儲庫發(fā)生以下錯誤。大概是github.com的22端口被屏蔽了?

root@yst-ubuntu:~/dev-chaos-test-system/chaos-test-system# git push origin dev
ssh: connect to host github.com port 22: Connection refused
fatal: Could not read from remote repository.

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

通過HTTPS也不行,以下錯誤提示大意是 2021-08-13 密碼認證被移除了。官方中文文檔 文檔里似乎沒說密碼認證被移除這回事

root@yst-ubuntu:~/dev-chaos-test-system/chaos-test-system# git push hub_https dev
Username for 'https://github.com': YuSitong1999
Password for 'https://YuSitong1999@github.com': 
remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/YuSitong1999/chaos-test-system.git/'

解決

官方文檔: 在 HTTPS 端口使用 SSH

鏈接格式和GitHub提供的前兩條HTTPS和SSH鏈接不一樣。文章來源地址http://www.zghlxwxcb.cn/news/detail-816532.html

https://github.com/YuSitong1999/chaos-test-system.git
git@github.com:YuSitong1999/chaos-test-system.git

ssh://git@ssh.github.com:443/YuSitong1999/chaos-test-system.git

到了這里,關于Git推送到Guthub錯誤:ssh: connect to host github.com port 22: Connection refused的文章就介紹完了。如果您還想了解更多內容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關文章,希望大家以后多多支持TOY模板網(wǎng)!

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

領支付寶紅包贊助服務器費用

相關文章

  • git報錯處理:ssh:connect to host github.com port 22: Connection timed out

    git報錯處理:ssh:connect to host github.com port 22: Connection timed out

    git 在上傳、下載 文件的時候,報錯。 報錯信息: ssh:connect to host github.com port 22: Connection timed out 提示這個域名github.com port 的22 端口,鏈接超時。 我直接訪問github.com 這個域名是可以訪問的,ping 也是可以ping通的。 使用telnet 鏈接github.com 的22 端口,報超時錯誤。 所以,問題

    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端口號被拒絕了,22號端口不行,那就換一個端口 ssh端口被拒絕 找到.ssh文件,在下面創(chuàng)建一個config文件,然后記事本打開寫入以下內容 成功提交 主要是ssh 22端口被拒絕,我

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

    【git】解決git報錯:ssh:connect to host github.com port 22: Connection timed out 親測有效

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

    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:連接到主機 github.com 端口 22:連接超時 fatal:無法從遠程存儲庫讀取 其二、問題描述為: A、正常的將代碼提交到 git 倉庫的過程: step1、找到要提交 git 的代

    2024年01月25日
    瀏覽(27)
  • 【Git 教程系列第 27 篇】ssh: connect to host github.com port 22: Connection refused 的解決方案

    【Git 教程系列第 27 篇】ssh: connect to host github.com port 22: Connection refused 的解決方案

    這是【Git 教程系列第 27 篇】,如果覺得有用的話,歡迎關注專欄。 一:問題描述 自己的一個 git 項目,昨天在公司正常 push 的時候,提示文字信息如下 提示截圖信息如下 有人說是因為開了代理的原因,不過之前我開著代理提交是沒有問題的,但還是試了一試,可惜并沒有

    2024年02月08日
    瀏覽(26)
  • 終極辦法!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

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

    2024年02月04日
    瀏覽(19)
  • 【git】ssh: connect to host github.com port 22: Connection refused fatal: Could not read from remote r

    【git】ssh: connect to host github.com port 22: Connection refused fatal: Could not read from remote r

    之前github的ssh的公私鑰已經(jīng)配置好,并可以正常使用,可沒過多久,有一天突然報錯: ssh: connect to host github.com port 22: Connection refused fatal: Could not read from remote repository. git 遠程倉庫兩種協(xié)議:ssh,https。 在解決問題之前,先要了解git遠程倉庫的兩種協(xié)議連接。 ssh協(xié)議連接gi

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

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

    2024年01月20日
    瀏覽(28)
  • ssh: connect to host github.com port 22: Connection refused

    最近使用 git 拉取 Github 上的項目時老是出現(xiàn) Connection refused : 網(wǎng)上的解決辦法 解決ssh: connect to host github.com port 22: Connection refused 但是在使用了這個方法后依然無法解決: 然后看見隔壁工位上大哥的搜索欄上赫然也是這個問題,交流一番應該是最近墻比較敏感的問題。 解決方

    2024年02月13日
    瀏覽(21)
  • 解決ssh: connect to host github.com port 22: Connection refused

    ssh: connect to host github.com port 22: Connection refused 是連接github.com的端口號22拒絕連接。 可以使用github的443端口。 解決方案 在 ~/.ssh/config 中添加如下字段: 測試是否鏈接成功 如果出現(xiàn)如下字段則驗證成功 The authenticity of host ‘[ssh.github.com]:443 ([20.205.243.160]:443)’ can’t be establishe

    2024年01月22日
    瀏覽(29)

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

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請作者喝杯咖啡吧~博客贊助

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

二維碼1

領取紅包

二維碼2

領紅包