github 推送报错 ssh: connect to host github.com port 22: Connection timed out 解决

🚀 作者主页: 有来技术
🔥 开源项目: youlai-mall 🍃 vue3-element-admin 🍃 youlai-boot
🌺 仓库主页: Gitee 💫 Github 💫 GitCode
💖 欢迎点赞 👍 收藏 ⭐留言 📝 如有错误敬请纠正!

目录

  • 问题描述
  • 解决方案
  • 解决验证
  • 开源项目

问题描述

git push 推送 github 报错如下:

ssh: connect to host github.com port 22: Connection timed out
fatal: Could not read from remote repository.

在这里插入图片描述

解决方案

找到 .ssh 文件夹新增 config 配置文件
在这里插入图片描述
添加以下配置即可

Host github.com
Hostname ssh.github.com
Port 443

解决验证

使用 ssh -T git@github.com 测试连接

在这里插入图片描述
重新推送验证是否成功
在这里插入图片描述

开源项目

  • SpringCloud + Vue3 微服务商城
GithubGitee
后端youlai-mall 🍃youlai-mall 🍃
前端mall-admin🌺mall-admin 🌺
移动端mall-app 🍌mall-app 🍌
  • SpringBoot 3+ Vue3 单体权限管理系统
GithubGitee
后端youlai-boot 🍃youlai-boot 🍃
前端vue3-element-admin 🌺vue3-element-admin 🌺