分类
标签
Agent AI-Chat Arch-Linux Astro Cloudflare Codex curl_cffi DataBase DeepLearning Docker Encrypt Fastapi Fuwari Git Go Hardware Hexo Image Kylin LeetCode MeachineLearning Network Opencv OpenCV Playwright Python Pytorch RAG Remote Conn RPA Schedule Selenium Threading Tools Vastbase Vercel Visualization Web Win32 Work
103 字
1 分钟
git clone指令在挂代理之后被拒
参考文档:一个老前端写的文章,github ssh官方说明文档
挂代理后 git clone 出现 Connection closed by xxxxxxx port 22 ,出现这个问题,往往是因为代理的防火墙拒绝了 SSH 连接,可以尝试使用在 HTTPS 端口上建立的 SSH 连接进行克隆。
解决方法
在~/.ssh/config文件中添加如下内容:
Host github.com
Hostname ssh.github.com
Port 443
User git
git clone指令在挂代理之后被拒
https://blog.kimbleex.top/posts/2026-01-28-git-ssh/