-
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
相关推荐
刘发财6 小时前
弃用html2pdf.js,这个html转pdf方案能力是它的几十倍sunny86513 小时前
Claude Code 跨会话上下文恢复:从 8 次纠正到 0 次的工程实践ZengLiangYi18 小时前
Git Tag + Semver + CI/CD:从打标签到自动发布的完整实践徐小夕20 小时前
JitWord Office预览引擎:如何用Vue3+Node.js打造丝滑的PDF/Excel/PPT嵌入方案程序员鱼皮20 小时前
离大谱,我竟然在 VS Code 里做了个视频!答案answer1 天前
一个非常实用的Three.js3D模型爆破💥和切割开源插件草梅友仁1 天前
墨梅博客 1.7.0 发布与 AI 开发实践 | 2026 年第 9 周草梅周报ursazoo2 天前
写了一份 7000字指南,让 AI 帮我消化每天的信息流