-
Test availability first
bash$ ssh -T -p 443 git@ssh.github.comNote:
Why we need to use this command to test?
It's useful when:
- Standard port 22 is blocked by a firewall or ISP
- You're on a restricted network (corporate, school, public Wi-Fi)
Port 443 (HTTPS) is almost always allowed, so using SSH over this port bypasses restrictions while keeping the security of SSH.
-
Edit vim ~/.ssh/config
bashHost github.com Hostname ssh.github.com Port 443 User git -
Then test again:
bashssh -T -p 443 git@ssh.github.comyou will see : Hi ... ! You've successfully authenticated.
Github无法push
Miracle&2026-01-16 8:07
相关推荐
James_WangA10 小时前
我给 AOI 设备装了一个 Agent,然后发现工具注册才是最难写的James_WangA10 小时前
产线上跑 Agent:LLM 挂了不是 500 错误,是停线Hommy8815 小时前
【开源剪映小助手】字幕接口一袋米扛几楼9817 小时前
【Git】规范化协作:详解 GitHub 工作流中的 Issue、Branch 与 Pull Request 最佳实践尘埃落定wf17 小时前
# GitHub CLI:告别繁琐的 Git 命令,让开发更高效zh_xuan18 小时前
上传api调试工具到githubAIMath~20 小时前
彻底删除 GitHub 仓库中特定文件夹的完整指南DogDaoDao21 小时前
【GitHub】OpenClaw:开源个人AI助手的新标杆一点一木1 天前
🚀 2026 年 4 月 GitHub 十大热门项目排行榜 🔥宝桥南山1 天前
AI - 在命令行中尝试一下ACP(Agent Client Protocol)通信