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.

相关推荐
狂炫冰美式8 小时前
你还在古法PPT吗,试试HTML呢?免费编辑导出工具给 xdm 放这了
前端·后端·github
Thecozzy10 小时前
PR经历(Understand-Anything)
github
猎奇不再看12 小时前
MAF的Agent详解:连接LLM的IChatClient对象
github
_Evan_Yao13 小时前
一文搞懂:Git分支管理与团队协作规范——从GitFlow到GitHub Flow,从rebase到merge,打造高效协作流
java·git·后端·github
lxw184491251414 小时前
github 提示双因素认证
github
逛逛GitHub15 小时前
你的 AI Agent 每次请求都在干嘛?这个开源项目帮你扒个底朝天。
github
用户4802615847015 小时前
Remeda:data-first 和 data-last,它全都要
github
花椒技术16 小时前
AI 代码评审落地实践:GitLab 接入、项目规则与反馈闭环
后端·github·agent
袋子(PJ)16 小时前
2026最新GitHub发布项目全过程
git·github
拓研C17 小时前
EM-Core-Agent:AI Agent 具身认知核心系统——架构白皮书 V1.0
人工智能·架构·车载系统·机器人·github