![](/img/trans.png)
[英]GitHub Error - "ssh: connect to host github.com port 22: Operation timed out fatal: Could not read from remote repository."
[英]Github connect to host github.com port 22: Operation timed out
在嘗試推或拉時,我突然開始收到以下錯誤消息:
ssh: connect to host github.com port 22: Operation timed out
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
如何檢查我是否擁有“正確的訪問權限”? 我已經在這個存儲庫上工作了很長一段時間,從來沒有遇到過問題。
我究竟做錯了什么?
不知道是否有人還需要解決這個問題。 遇到了同樣的問題,我通過下面的鏈接找到了解決方案。
創建或編輯~/.ssh/config
並附加以下內容:
Host github.com
Hostname ssh.github.com
Port 443
您可以從這里閱讀: https : //amesbury.it/git/github/2018/05/15/port22-blocked-github.html
我遇到了同樣的問題,並通過從~/.ssh/known_hosts
文件中刪除 github 條目來修復它。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.