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.

相关推荐
James_WangA10 小时前
我给 AOI 设备装了一个 Agent,然后发现工具注册才是最难写的
架构·github
James_WangA10 小时前
产线上跑 Agent:LLM 挂了不是 500 错误,是停线
架构·github
Hommy8815 小时前
【开源剪映小助手】字幕接口
开源·github·aigc·剪映小助手·视频剪辑自动化
一袋米扛几楼9817 小时前
【Git】规范化协作:详解 GitHub 工作流中的 Issue、Branch 与 Pull Request 最佳实践
前端·git·github·issue
尘埃落定wf17 小时前
# GitHub CLI:告别繁琐的 Git 命令,让开发更高效
git·github
zh_xuan18 小时前
上传api调试工具到github
github
AIMath~20 小时前
彻底删除 GitHub 仓库中特定文件夹的完整指南
github
DogDaoDao21 小时前
【GitHub】OpenClaw:开源个人AI助手的新标杆
人工智能·深度学习·开源·大模型·github·ai编程·opeclaw
一点一木1 天前
🚀 2026 年 4 月 GitHub 十大热门项目排行榜 🔥
人工智能·github
宝桥南山1 天前
AI - 在命令行中尝试一下ACP(Agent Client Protocol)通信
microsoft·微软·github·aigc·copilot