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.

相关推荐
NocoBase3 小时前
【2.0 教程】第 1 章:认识 NocoBase ,5 分钟跑起来
数据库·人工智能·开源·github·无代码
量子位8 小时前
字节版龙虾架构火爆GitHub!开源获35k+ Star,内置Skill全家桶,原生适配飞书
github·ai编程
汪海游龙12 小时前
开源项目 Trending AI 招募 Google Play 内测人员(12 名)
android·github
HealthScience13 小时前
github怎么授权ssh(私人库授权)
运维·ssh·github
CoderJia程序员甲14 小时前
GitHub 热榜项目 - 日榜(2026-03-22)
人工智能·ai·大模型·github·ai教程
阿里嘎多学长14 小时前
2026-03-22 GitHub 热点项目精选
开发语言·程序员·github·代码托管
研究点啥好呢14 小时前
3月22日GitHub热门项目推荐|网页浏览,何须手动
人工智能·python·开源·github
darkb1rd16 小时前
ClawTeam:让 AI 代理组成集群,实现全自动化工作流
开源·github·好物分享
scilwb16 小时前
《TIAGo Dual 机器人 Isaac Sim (PhysX Lidar) + Cartographer 2D SLAM 严谨配置全流程指南》
github