Github无法push

  1. Test availability first

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

    Note:

    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.

  2. Edit vim ~/.ssh/config

    bash 复制代码
    Host github.com
      Hostname ssh.github.com
      Port 443
      User git
  3. Then test again:

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

    you will see : Hi ... ! You've successfully authenticated.

相关推荐
zh_xuan1 小时前
Visual Studio 上传工程到github
ide·git·github·visual studio
CoovallyAIHub2 小时前
视频理解新范式:Agent不再被动看视频,LensWalk让它自己决定看哪里
算法·架构·github
CoovallyAIHub2 小时前
斯坦福丨AirVLA:将地面机械臂模型迁移至无人机实现空中抓取,成功率从23%提升至50%
算法·架构·github
数据知道4 小时前
《 Claude Code源码分析与实践》专栏目录
python·ai·github·claude code·claw code
逛逛GitHub4 小时前
开源 10 天就飙到 4 万星,这个项目收集了 58 个知名网站样式。
github
anywayuan6 小时前
使用 GitHub Actions 自动化构建和发布 Rust 项目
github
CoderJia程序员甲6 小时前
GitHub 热榜项目 - 日榜(2026-04-12)
ai·大模型·llm·github·ai教程
用户385178461906 小时前
PR冲突处理和更新流程
github
linux修理工6 小时前
pve 安装桌面xfce并开启vnc
github
阿里嘎多学长9 小时前
2026-04-12 GitHub 热点项目精选
开发语言·程序员·github·代码托管