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

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

复制代码
 ssh -T [email protected]

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

可以通过443 端口进行连接

复制代码
$ ssh -T -p 443 [email protected]

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

也需修改项目地址

复制代码
git clone ssh://[email protected]:443/YOUR-USERNAME/YOUR-REPOSITORY.git
相关推荐
Bryan_Long23 分钟前
Git 命令行操作提交至远程仓库
git·github
muyouking111 小时前
3.Rust + Axum 提取器模式深度剖析
前端·rust·github
极小狐1 小时前
极狐GitLab 功能标志详解
linux·运维·服务器·elasticsearch·gitlab·极狐gitlab
jinan8861 小时前
加密软件的发展:从古典密码到量子安全
大数据·运维·服务器·网络·安全·web安全
小华同学ai2 小时前
15.4K Star!Vercel官方出品,零基础构建企业级AI聊天机器人
github
越学不动啦2 小时前
十、自动化函数+实战
运维·软件测试·自动化·测试
丑过三八线3 小时前
在Linux下安装Gitlab
linux·运维·gitlab
三道杠卷胡3 小时前
【AI News | 20250417】每日AI进展
人工智能·pytorch·python·语言模型·github
s_little_monster4 小时前
【Linux】线程互斥之线程加锁
linux·运维·经验分享·redis·笔记·学习·学习方法
❀͜͡傀儡师4 小时前
Docker部署禅道21.6开源版本
运维·docker·容器