网上的方案

链接: link
1.

vim ~/.ssh/config
Host github.com
User xxxxx@xx.com
Hostname ssh.github.com
PreferredAuthentications publickey
IdentityFile ~/.ssh/id_rsa
Port 443

修改host
首先到 ipaddress 输入 github.com 查找到其IP地址
将查到的IP地址和网址映射放到你的本地 hosts 文件中即可,例子:140.82.112.4 github.com
windowshost 默认地址: C:\Windows\System32\drivers\etc

我的解决方案

关闭加速器,成功解决。

解决ssh: connect to host github.com port 22: Connection refused相关推荐

  1. 【Git 教程系列第 27 篇】ssh: connect to host github.com port 22: Connection refused 的解决方案

    这是[Git 教程系列第 27 篇],如果觉得有用的话,欢迎关注专栏. 文章目录 一:问题描述 二:解决方案 一:问题描述 自己的一个 git 项目,昨天在公司正常 push 的时候,提示文字信息如下 ...

  2. git配置错误 ssh: connect to host github.com port 22: Connection refused

    最近学习到版本管理器git,感觉到它的强大之处,但在与远程仓库链接时出现了配置错误问题,所以就整理了一下我的具体解决步骤,不足之处,望大佬指点. 首先要找到一个.ssh文件 .ssh/ 是一个隐藏文件 ...

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

    ssh报错: ssh: connect to host github.com port 22: Connection timed out fatal: Could not read from remo ...

  4. ssh: connect to host github.com port 22: Connection timed out

    问题描述 $ git clone git@github.com:MaugerWu/MaugerWu.github.io.git Cloning into 'MaugerWu.github.io'... ...

  5. Github拉取远端的时候提示“ssh: connect to host github.com port 22: Connection timed out”错误...

    在使用Github的时候,如果使用到拉取远端分支的时候或者测试ssh -T git@github.com的时候可能会出现连接失败的问题,错误描述为"ssh: connect to host ...

  6. git push失败:ssh:connect to host github.com port 22:Connection timed out

    问题描述:ssh:connect to host github.com port 22:Connection timed out 问题原因:可能是网络下修改防火墙的问题,导致阻塞了一些端口 解决方案: ...

  7. 【git】“ssh:connect to host github.com port 22: Connection timed out“问题的解决

    打开.ssh/config文件 22端口改443端口 运行ssh -T git@github.com 输入yes

  8. ssh: connect to host ip地址 port 22: Connection refused (deepin适用)

    进入根目录 cd / 开启ssh etc/init.d/ssh start

  9. 解决 connect to host github.com port 22 operation timed out

    本来好好地.不知道为什么不能push了.估计是被墙,于是搜搜解决办法.改换端口 参考 https://mozillazg.com/2015/08/use-443-port-fix-github-con ...

最新文章

  1. JS 验证表单不能为空
  2. 对于模板渲染的页面,如何针对渲染出来的对象添加事件
  3. ThoughtWorks微服务架构交流心得
  4. vue_prop单向数据流
  5. 使用numpy出现DeprecationWarning: The normed argument is ignored when density is provided. 解决方法忽略警告的方法
  6. 解决org.apache.hadoop.io.nativeio.NativeIOException: 当文件已存在时,无法创建该文件。
  7. 汇编编译器以及 DOSBox0.74的安装使用(虚拟)64位
  8. 3.1 Tensorflow基础知识
  9. 阿里云服务器搭建ftp服务器
  10. 事业单位计算机岗位考公基吗,【事业单位】江苏统考考什么?公基、言语……题量分布!...
  11. 文件批量重命名怎么加下划线?
  12. 校园二手市场需求分析
  13. iPhone信号太差?学会这三招,信号差也能瞬间满格!
  14. Leecode101_isSymmetric
  15. O2OA接入企业钉钉 - 在钉钉上使用移动办公(新版)
  16. 记录yarn安装全局包,无法使用的问题:‘yo‘ 不是内部或外部命令,也不是可运行的程序或批处理文件
  17. 企业微信外部群和内部群有什么区别?如何创建外部群
  18. 【微信】公众号群发相关使用
  19. 谷歌统计使用代码部署和事件API使用
  20. 人工智能对我们的影响是什么?

热门文章

  1. python+opencv 计算图片的感知hash值,来计算汉明距离,简单的找相似图片
  2. 《程序天下事》6月要闻回顾
  3. 《思考的技术》笔记一
  4. The Transform API is removed to improve build performance. Projects that use
  5. 全国银行列表json格式
  6. 2021高考公务员成绩查询,2021国家公务员考试成绩查询入口开通时间
  7. 网络安全十大威胁的防范方法
  8. 【愚公系列】2023年01月 Java教学课程 004-Java语言三种注释
  9. WIN10系统打不开局域网共享
  10. 梁春晓:互联网时代的社会创新与新公益形态