解决 connect to host github.com port 22 operation timed out
2024-08-27 23:59:59
本来好好地.不知道为什么不能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.com
, Port
改为 443
:
如果没有config文件就手动创建一个
Host github.com
Hostname ssh.github.com
Port
测试
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.
最新文章
- nandaom
- 大小写互换-";数字字符串";转换成数字
- 【POJ 1679】The Unique MST(次小生成树)
- linux 搭建jenkins+创建maven工程JOB
- Query classification; understanding user intent
- 二分求解 三角形 stl的应用 涉及范围的二分查找可以先求上界再算下界,结果即上界减下界
- ElasticSearch(8)-分布式搜索
- ng7 设置文件路径别名
- C# 读取TXT文本数据 添加到数据库
- MySQL NULL处理
- day88
- Linux(CentOS7)安装zip、unzip命令
- oracle中实现自增id
- 【SDOI2011】工作安排
- 爱普生Me330 打印机改装连供系统计划
- 14个最常见的Kafka面试题及答案【转】
- 个人github blog环境设置
- PHP设计模式——责任链模式
- 4-oracle11g安装
- 移动端之touch事件--手指的滑动事件