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.

相关推荐
长不大的杨瑞杰1 小时前
GitHub Copilot Browser Use 实战:让 AI 在浏览器里调试与自动化测试
人工智能·github·copilot·playwright·github copilot·browser use
大侠Luffy1 小时前
用 EmbeddingGemma 2 做一个本地照片与短视频搜索工具
开源·github·ai编程
咖啡色格调2 小时前
项目已托管在 Gitee,如何同时推送到 GitHub
gitee·github
人人都是软件工程师2 小时前
前端接了 Agent,为什么还是满屏自定义代码?读懂 AG-UI 的 31 个事件
人工智能·github
怕浪猫3 小时前
GLM-5.4 深度拆解:750B 参数如何「循环」出 2-3T 级智能?
算法·面试·github
李永奉3 小时前
Git和GitHub-Git 管理的版本数据到底保存在哪个文件夹里?
git·github
wflynn20 小时前
GitHub 今日推荐|univer:可嵌入 Web 应用的开源 Office 引擎
typescript·开源·github·doc·collaboration·board
dong_junshuai21 小时前
每天一个开源项目#163 Ghost Downloader:分块下载为何不用合并
github
网易云信21 小时前
AI 写 IM 集成总用错 API?用云信 AI Skills 把文档接进开发流程
github
猛码象限21 小时前
【GitHub 周报】换血八成,注意力从造 Agent 转向管 Agent
github·业界资讯