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.

相关推荐
高频因子挖掘机3 小时前
QuantDash 成交量单位统一实战:从“手”到“股”的跨市场量化数据清洗全流程
后端·算法·github
CoderJia程序员甲3 小时前
GitHub 热榜项目 - 周榜(2026-08-22)
ai·大模型·llm·github·ai教程
丰锋ff3 小时前
Github使用教程
github
领创工作室19 小时前
GitHub Workflows 全面解析:从核心概念到开源实现
运维·github
一条泥憨鱼21 小时前
【从0开始学习计算机网络】| DNS -记录类型详解
计算机网络·http·github·域名·dns·记录
u1301301 天前
GitHub 热榜项目:日榜(2026-08-21)
驱动开发·github
MicrosoftReactor1 天前
技术速递|GitHub Copilot App 入门指南:管理你的工作
ai·github·copilot·agent
阿里嘎多学长1 天前
2026-08-20 GitHub 热点项目精选
开发语言·程序员·github·代码托管
小妖同学学AI1 天前
AI视频生成难在提示词?这个Claude插件让Seedance 2.0效率翻倍,附超全示例!
人工智能·开源·github·音视频