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.

相关推荐
寻道码路2 小时前
【GitHub开源AI精选】WhisperX:70倍实时语音转录、革命性词级时间戳与多说话人分离技术
人工智能·开源·github
南宫码农5 小时前
苹果cms
github·电视盒子·源代码
CoderJia程序员甲5 小时前
GitHub 热榜项目 - 日榜(2026-02-04)
开源·大模型·llm·github·ai教程
该用户已存在(真)7 小时前
工程项目训练--病毒分析
github·课程设计
小灰灰搞电子8 小时前
github/gitee 操作命令详解
gitee·github
会写代码的饭桶10 小时前
【DevOps实战】使用 GitHub Actions 自动构建镜像并双推至 Docker Hub 和 GHCR
docker·自动化·github·devops
MicrosoftReactor10 小时前
技术速递|GitHub Copilot SDK 与云原生的完美融合
云原生·github·copilot
JiL 奥11 小时前
简易的 AWS SAM + GitHub Actions 项目
云计算·github·aws
潘晓可12 小时前
从自建Github实例迁移仓库到SaaS版Github
github
极客小云12 小时前
【基于AI的自动商品试用系统:不仅仅是虚拟试衣!】
javascript·python·django·flask·github·pyqt·fastapi