本来好好地.不知道为什么不能push了.估计是被墙,于是搜搜解决办法.改换端口

参考 https://mozillazg.com/2015/08/use-443-port-fix-github-connection-timeout.html

参开: https://help.github.com/articles/using-ssh-over-the-https-port/

修改 ~/.ssh/config 中 github.com 的配置, Hostname 改为 ssh.github.comPort 改为 443:

如果没有config文件就手动创建一个

1 Host github.com
2   Hostname ssh.github.com
3   Port 443

测试

ssh -T git@github.com
The authenticity of host '[ssh.github.com]:443 ([xxx.xxx.xxx.xxx]:443)' can't be established.
RSA key fingerprint is SHA256:xxxxxxxx....
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '[ssh.github.com]:443,[xxx.xxx.xxx.xxx]:443' (RSA) to the list of known hosts.
Hi unixc3t! You've successfully authenticated, but GitHub does not provide shell access.

转载于:https://www.cnblogs.com/or2-/p/6185917.html

解决 connect to host github.com port 22 operation timed out相关推荐

  1. 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 ...

  2. 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'... ...

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

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

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

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

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

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

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

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

  7. 解决ssh: connect to host github.com port 22: Connection refused

    网上的方案 链接: link 1. vim ~/.ssh/config Host github.com User xxxxx@xx.com Hostname ssh.github.com Prefer ...

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

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

  9. Failed to connect to chromium.googlesource.com port 443: Operation timed out

    git clone googlesource 的各种 timeout:Failed to connect to chromium.googlesource.com port 443: Operatio ...

最新文章

  1. 2012黑龙江省赛J题-最小均值圈
  2. 10、oracle下PL/SQL编程基础
  3. python 头条 上传_Python+selenium自动化之文件上传
  4. 【机器学习】sklearn实现---归类为5大类
  5. 如何高效管理BI报表的需求
  6. 3 天撸了个数据中台出来,我飘了~
  7. java判断long 大于0,JAVA的一道习题:找出五个大于Long.MAX_VALUE的素数
  8. linux版Nacos安装、集群配置
  9. 机器学习(聚类八)——密度聚类
  10. 小福利,excel的常用高阶函数介绍
  11. Scala安装教程(windows和linux)
  12. 删除Word模板文件
  13. Python构建投资模型(1)——从天天基金网爬数
  14. STEAM 教育相关书籍
  15. cscope.exe程序的base64文本
  16. 雪豹安装光盘 苹果mac 下载
  17. 2009年以前四川微型计算机设备,『2009年四川省考行测真题』2009年四川省考行测真题资料大全_2009年公务员四川省考行测真题及答案-华图教育...
  18. 富文本编辑器 —— 学习笔记
  19. android gps 火星坐标,高德地图GCJ-02火星坐标系与GPS的WGS-84坐标系转换公式(安卓)...
  20. 如何让谷歌浏览器支持迅雷下载

热门文章

  1. android surfaceflinger研究----显示系统
  2. long 比较大小_Long-Term Feature Banks
  3. python2019慕课答案_中国大学慕课mooc2020Python编程基础章节测试答案
  4. 算法的威力:法国人用台式机打破由超级计算机创造的圆周率运算世界记录
  5. linux远程代码执行漏洞,Bash远程任意代码执行安全漏洞(最严重漏洞)
  6. am5728 是否支持aarch64_am5728开启uart0接口通讯
  7. charles 安装 ssl_charles抓包配置
  8. ie浏览器修复_腾讯安全:IE浏览器曝远程执行代码漏洞 腾讯安全强势推出漏洞修复工具...
  9. details在Java中_Spring安全性在Java配置中使用两个自定义UserDetailsS​​ervices
  10. 并发编程-volatile和synchronized的区别