github 通过ssh进行连接的另一种方式

一般使用ssh连接是通过22端口。如果已经把ssh公钥假如到了github中还无法连接。可以通过

复制代码
 ssh -T git@github.com

测试一下。如果报出
ssh: connect to host github.com port 22: Connection timed out

可以通过443 端口进行连接

复制代码
$ ssh -T -p 443 git@ssh.github.com

注意:端口 443 的主机名为 ssh.github.com,而不是 github.com

也需修改项目地址

复制代码
git clone ssh://git@ssh.github.com:443/YOUR-USERNAME/YOUR-REPOSITORY.git
相关推荐
有一个好名字3 分钟前
claude code安装
linux·运维·前端
亮子AI4 分钟前
【Linux】如何拷贝目录?
linux·运维·服务器
starvapour19 分钟前
Ubuntu更换显卡驱动后网络消失的问题
linux·运维·ubuntu
Jerryhut33 分钟前
服务器BMC配置管理
运维·服务器
孟健39 分钟前
AI Agent 已经开始攻击 GitHub Actions:我整理了 7 条最该先做的加固清单
安全·github·agent
fengyehongWorld1 小时前
Linux wsl中使用windows命令
linux·运维·windows
CoovallyAIHub1 小时前
开源一周 6300+ Star!Andrew Ng 发布 Context Hub,专治 AI Agent 调用过时 API
人工智能·架构·github
shuxiaohua1 小时前
一次现网问题定位-nginx报错upstream sent invalid chunked response while reading upstream
运维·nginx
答案answer1 小时前
我的Three.js3D场景编辑器免费开源啦🎉🎉🎉
前端·github·three.js
lpfasd1232 小时前
2026年第11周GitHub趋势周报:AI智能体爆发,RAG与本地部署成新焦点
人工智能·github