-
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
相关推荐
草梅友仁24 分钟前
墨梅博客 1.4.0 发布与开源动态 | 2026 年第 6 周草梅周报学电子她就能回来吗2 小时前
深度学习速成:损失函数与反向传播xuhe25 小时前
[全流程详细教程]Docker部署ClawBot, 使用GLM4.7, 接入TG Bot实现私人助理. 解决Docker Openclaw Permission Denied问题宇宙帅猴6 小时前
GitHub 私有仓库认证完整指南:告别密码错误,使用 PAT 令牌前端市界9 小时前
用 React 手搓一个 3D 翻页书籍组件,呼吸海浪式翻页,交互体验带感!happyprince9 小时前
2026年02月07日热门github项目CoderJia程序员甲10 小时前
GitHub 热榜项目 - 日榜(2026-02-06)荔枝吻11 小时前
忘记服务器密码,在Xshell7中查看已保存密码tod11314 小时前
TCP全连接队列与tcpdump抓包Luck_ff081014 小时前
百度指数数据采集与可视化平台 BaiduIndexHunter