## Solution for 'ssh: connect to host github.com port 22: Connection timed out' error[※](https://note.jiejaitt.top/sNdsX5TPBhvn#Solution%20for%20'ssh:%20connect%20to%20host%20github.com%20port%2022:%20Connection%20timed%20out'%20error) ```plain $ git clone git@github.com:xxxxx/xxxx.git my-awesome-proj Cloning into 'my-awesome-proj'... ssh: connect to host github.com port 22: Connection timed out fatal: Could not read from remote repository. $ # This should also timeout $ ssh -T git@github.com ssh: connect to host github.com port 22: Connection timed out $ # but this might work $ ssh -T -p 443 git@ssh.github.com Hi xxxx! You've successfully authenticated, but GitHub does not provide shell access. $ # Override SSH settings $ vim ~/.ssh/config ``` # Add section below to it Host github.com Hostname ssh.github.com Port 443 ``` $ ssh -T git@github.com Hi xxxxx! You've successfully authenticated, but GitHub does not provide shell access. $ git clone git@github.com:xxxxxx/xxxxx.git my-awesome-proj Cloning into 'my-awesome-proj'... remote: Enumerating objects: 15, done. remote: Counting objects: 100% (15/15), done. remote: Compressing objects: 100% (14/14), done. remote: Total 15 (delta 0), reused 15 (delta 0), pack-reused 0 Receiving objects: 100% (15/15), 22.90 KiB | 4.58 MiB/s, done.Copy ``` ## 快速查看某个仓库自己参与过的issue和pr[※](https://note.jiejaitt.top/sNdsX5TPBhvn#%E5%BF%AB%E9%80%9F%E6%9F%A5%E7%9C%8B%E6%9F%90%E4%B8%AA%E4%BB%93%E5%BA%93%E8%87%AA%E5%B7%B1%E5%8F%82%E4%B8%8E%E8%BF%87%E7%9A%84issue%E5%92%8Cpr) ```plain repo:gofiber/fiber involves:jiejaittCopy ``` ## 临时修改仓库的用户名与邮箱[※](https://note.jiejaitt.top/sNdsX5TPBhvn#%E4%B8%B4%E6%97%B6%E4%BF%AE%E6%94%B9%E4%BB%93%E5%BA%93%E7%9A%84%E7%94%A8%E6%88%B7%E5%90%8D%E4%B8%8E%E9%82%AE%E7%AE%B1) ```plain git config user.name "JIeJaitt" git config user.email "498938874@qq.com"Copy ``` ## Pull Requests or Commits Titles always we must use prefix according to below:[※](https://note.jiejaitt.top/sNdsX5TPBhvn#Pull%20Requests%20or%20CommitsTitles%20always%20we%20must%20use%20prefix%20according%20to%20below:) > 🔥 Feature, ♻️ Refactor, 🩹 Fix, 🚨 Test, 📚 Doc, 🎨 Style - 🔥 Feature: Add flow to add person - ♻️ Refactor: Rename file X to Y - 🩹 Fix: Improve flow - 🚨 Test: Validate to add a new person - 📚 Doc: Translate to Portuguese middleware redirect - 🎨 Style: Respected pattern Golint All pull requests that contain a feature or fix are mandatory to have unit tests. Your PR is only to be merged if you respect this flow. ## User Setting[※](https://note.jiejaitt.top/sNdsX5TPBhvn#User%20Setting) ```plain "git.autofetch": true, 可以配置自动切换仓库自动fetch远端分支Copy ``` ## Git: Connection reset by 20.205.243.166 port 22[※](https://note.jiejaitt.top/sNdsX5TPBhvn#Git:%20Connection%20reset%20by%2020.205.243.166%20port%2022) Add this to your `~\.ssh\config` if the github.com - port 22 hasn’t been set properly with the following proxy setting. ```plain Host github.com port 22 User git HostName github.com PreferredAuthentications publickey IdentityFile ~/.ssh/id_rsa_github # 10808 is local socks listening port number, find it in your v2ray / clash setting (through GUI, preferrably) ProxyCommand connect -S 127.0.0.1:10808 -a none %h %p ``` Loading... ## Solution for 'ssh: connect to host github.com port 22: Connection timed out' error[※](https://note.jiejaitt.top/sNdsX5TPBhvn#Solution%20for%20'ssh:%20connect%20to%20host%20github.com%20port%2022:%20Connection%20timed%20out'%20error) ```plain $ git clone git@github.com:xxxxx/xxxx.git my-awesome-proj Cloning into 'my-awesome-proj'... ssh: connect to host github.com port 22: Connection timed out fatal: Could not read from remote repository. $ # This should also timeout $ ssh -T git@github.com ssh: connect to host github.com port 22: Connection timed out $ # but this might work $ ssh -T -p 443 git@ssh.github.com Hi xxxx! You've successfully authenticated, but GitHub does not provide shell access. $ # Override SSH settings $ vim ~/.ssh/config ``` # Add section below to it Host github.com Hostname ssh.github.com Port 443 ``` $ ssh -T git@github.com Hi xxxxx! You've successfully authenticated, but GitHub does not provide shell access. $ git clone git@github.com:xxxxxx/xxxxx.git my-awesome-proj Cloning into 'my-awesome-proj'... remote: Enumerating objects: 15, done. remote: Counting objects: 100% (15/15), done. remote: Compressing objects: 100% (14/14), done. remote: Total 15 (delta 0), reused 15 (delta 0), pack-reused 0 Receiving objects: 100% (15/15), 22.90 KiB | 4.58 MiB/s, done.Copy ``` ## 快速查看某个仓库自己参与过的issue和pr[※](https://note.jiejaitt.top/sNdsX5TPBhvn#%E5%BF%AB%E9%80%9F%E6%9F%A5%E7%9C%8B%E6%9F%90%E4%B8%AA%E4%BB%93%E5%BA%93%E8%87%AA%E5%B7%B1%E5%8F%82%E4%B8%8E%E8%BF%87%E7%9A%84issue%E5%92%8Cpr) ```plain repo:gofiber/fiber involves:jiejaittCopy ``` ## 临时修改仓库的用户名与邮箱[※](https://note.jiejaitt.top/sNdsX5TPBhvn#%E4%B8%B4%E6%97%B6%E4%BF%AE%E6%94%B9%E4%BB%93%E5%BA%93%E7%9A%84%E7%94%A8%E6%88%B7%E5%90%8D%E4%B8%8E%E9%82%AE%E7%AE%B1) ```plain git config user.name "JIeJaitt" git config user.email "498938874@qq.com"Copy ``` ## Pull Requests or Commits Titles always we must use prefix according to below:[※](https://note.jiejaitt.top/sNdsX5TPBhvn#Pull%20Requests%20or%20CommitsTitles%20always%20we%20must%20use%20prefix%20according%20to%20below:) > 🔥 Feature, ♻️ Refactor, 🩹 Fix, 🚨 Test, 📚 Doc, 🎨 Style - 🔥 Feature: Add flow to add person - ♻️ Refactor: Rename file X to Y - 🩹 Fix: Improve flow - 🚨 Test: Validate to add a new person - 📚 Doc: Translate to Portuguese middleware redirect - 🎨 Style: Respected pattern Golint All pull requests that contain a feature or fix are mandatory to have unit tests. Your PR is only to be merged if you respect this flow. ## User Setting[※](https://note.jiejaitt.top/sNdsX5TPBhvn#User%20Setting) ```plain "git.autofetch": true, 可以配置自动切换仓库自动fetch远端分支Copy ``` ## Git: Connection reset by 20.205.243.166 port 22[※](https://note.jiejaitt.top/sNdsX5TPBhvn#Git:%20Connection%20reset%20by%2020.205.243.166%20port%2022) Add this to your `~\.ssh\config` if the github.com - port 22 hasn’t been set properly with the following proxy setting. ```plain Host github.com port 22 User git HostName github.com PreferredAuthentications publickey IdentityFile ~/.ssh/id_rsa_github # 10808 is local socks listening port number, find it in your v2ray / clash setting (through GUI, preferrably) ProxyCommand connect -S 127.0.0.1:10808 -a none %h %p ``` 最后修改:2025 年 11 月 01 日 © 允许规范转载 打赏 赞赏作者 支付宝微信 赞 如果觉得我的文章对你有用,请随意赞赏
1 条评论
华纳圣淘沙公司开户新手教程
零基础学会(183-8890-9465薇-STS5099)
华纳圣淘沙公司开户
华纳圣淘沙公司开户保姆级教程(183-8890-9465薇-STS5099)
一步步教你开通华纳圣淘沙公司账户(183-8890-9465薇-STS5099)
华纳圣淘沙公司开户分步图解
首次开户必看:(183-8890-9465薇-STS5099)
华纳圣淘沙全攻略
华纳圣淘沙公司开户实操手册(183-8890-9465薇-STS5099)
华纳圣淘沙开户流程视频教程
手把手教学:(183-8890-9465薇-STS5099)
华纳圣淘沙公司开户
华纳圣淘沙公司开户完全指南(183-8890-9465薇-STS5099)