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.

相关推荐
wangruofeng4 小时前
一个 Markdown 文件攒下 37k 星,i-have-adhd 给 AI 输出立了 10 条规矩
github·aigc·ai编程
怕浪猫5 小时前
长会话不崩盘:DeepSeek Harness 的上下文压缩与目标管理策略
面试·github·agent
DogDaoDao6 小时前
SimToolReal 解读:用“物体中心“视角重新定义灵巧工具操作
人工智能·机器人·github·关键点·人形机器人·gpt-4o·simtoolreal
993166610 小时前
一个人用 AI 的困局:它从不反对你,所以我让 5 个 AI 开了场圆桌会议
github·deepseek
其实防守也摸鱼12 小时前
每天一个知识点——RCE漏洞
运维·服务器·数据库·windows·安全·github·漏洞
u13013012 小时前
GitHub 热榜项目:日榜(2026-09-12)
github
TunerT_TQ13 小时前
Netflix|一个时代的终结:Hystrix静态工程评测,兼谈微服务容错范式的代际迁移
开源·github·资讯
m4Rk_13 小时前
【论文阅读】Agent 记忆机制(68):Memp——把历史轨迹沉淀为可检索、可纠错的程序性记忆
论文阅读·人工智能·学习·开源·github
峰向AI14 小时前
腾讯开源的AI管理的瑞士军刀:让团队经验自动传承
github
Howie_052616 小时前
AI-test-agent(一)刚入门测试也能读懂:一个基于 LangGraph + Playwright 的开源测试工作台
github