git提交出现警告Warning: Permanently added 'github.com,52.74.223.119' (RSA) to the list of known
问题:
Ubuntu 16.04 LTS执行 git pull时总会出现以下警告:
这个警告虽然不影响操作,但是看着碍眼啊。我昨天就开始摸索怎么解决这个问题,有人说在 /etc/hosts 文件里面写入对应的IP与服务器就行了:
我昨天就这样试过了,没用。
还一度认为是自己操作有误导致的。
今天我又不懈努力地搜索解决方案,秉着中国人没有、老外可能有的思想,在stackoverflow上的一篇求助贴上看到了类似情况,并不厌其烦地照着热心老外说的操作。
又双叒(音ruo,四声)叕(音zhuo,四声)是那句老话:功夫不负有心人!
我照着其中一个老外说的方法操作并顺利解决了问题。
我大概说一下老外前几句话的意思:
在文件夹 $HOME/.ssh/ 下创建一个文件 config,命令是这样的:
vim $HOME/.ssh/config
在新建的文件中写入如下语句:
LogLevel=quiet
保存、退出。
图5的第一句话是我写的备注,免得什么时候打开了还以为是系统文件;第二句话是照上文提到的求助贴某个老外说的方法操作,结果当然是失败了,注意这句话已经被注释掉了,没有起到任何作用;第三句话才是解决问题的关键,具体说明可以去看原求助贴,我懒得一一翻译了。
上一张成功后的截图:
从图6可以清晰地看到,类似的警告 Warning: Permanently added 'github.com,52.74.223.119' (RSA) to the list of known hosts. 已经不再显示了,之所以说类似的原因是:那个地址它还会变动,我看到的就有这么3个:
106.75.105.214 git.coding.net
52.74.223.119 github.com
13.229.188.59 github.com
13.250.177.223 github.com
至于为啥我没有细究。上面 .net 的地址也是之前照着某个方法的操作。
总结:
当在 Ubuntu 16.04 LST 执行 git pull 出现警告 Warning: Permanently added 'github.com,52.74.223.119' (RSA) to the list of known hosts. 时,在文件夹 $HOME/.ssh/ 下新建一个文件 config,并写入语句 LogLevel=quiet,保存后退出。再次执行 git pull便会发现已经不再显示上述警告。
git提交出现警告Warning: Permanently added 'github.com,52.74.223.119' (RSA) to the list of known相关推荐
- The authenticity of host 'github.com (52.74.223.119)' can't be established.
The authenticity of host 'github.com (52.74.223.119)' can't be established. 在初始化git之后(git init),同时在g ...
- idea中导入git项目时出现:Warning: Permanently added‘github.com’ (RSA) to the list of known hosts......
首次从idea上导入git项目时出现了,下图所示的错误: 解决方法: 打开 git bash 输入cd C:,回车 再输入cat ~/.ssh/id_rsa.pub,回车 输入ssh-keygen 然 ...
- Git上传代码时报错 Warning: Permanently added ‘gitee.com,212.64.62.174‘ (ECDSA) to the list of known host...
Git上传代码时报错 Warning: Permanently added 'gitee.com,212.64.62.174' (ECDSA) to the list of known host... ...
- 当主机使用ssh免密码登录时,出现Warning:Permanently added(RSA)to the list of known hosts警告
问题描述:当主机使用ssh免密码登录时,出现Warning:Permanently added(RSA)to the list of known hosts警告 解决办法:vim /etc/ssh/s ...
- Warning: Permanently added the RSA host key for IP address '13.229.188.59' to the list of known host
前言 最近在学习GIt,安装了Git bash,过程中遇到了各种问题,写下帖子,方便大家解决问题,也方便自己回顾 问题描述 Warning: Permanently added the RSA hos ...
- gssh推送 Warning: Permanently added 'gitee.com’to the list of known hosts.
git中ssh推送出错解决方法 Warning: Permanently added 'gitee.com,120.55.226.24' (ECDSA) to the list of known ho ...
- ssh推送Warning: Permanently added 'gitee.com,120.55.226.24' (ECDSA) to the list of known ho
git中ssh推送出错解决方法 Warning: Permanently added 'gitee.com,120.55.226.24' (ECDSA) to the list of known ho ...
- 一个方法解决Warning: Permanently added 'gitee.com,180.97.125.228' (ECDSA) to the list of
问题:从Github或者码云clone项目时报错: Warning: Permanently added 'gitee.com,180.97.125.228' (ECDSA) to the list ...
- CentOS 6.5下SSH总提示Warning: Permanently added '****' (RSA) to the list of known hosts.
通过了免密码验证后,但每次ssh或者scp的时候还总是提示: Warning: Permanently added '***(IP)' (RSA) to the list of known hosts ...
最新文章
- linux proc
- 代码中应用设计模式,看这一篇就够了
- Kubernetes(1) kubectl 入门
- IT管理人员需要更加了解数据中心冷却情况
- JAVA链表返回子表_基于java的链表反转
- 服务化改造实践 | 如何在 Dubbo 中支持 REST 1
- beatsx三闪红灯是什么意思_飞机座椅上写的quot;taxiquot; 什么意思?出租车?
- Netty权威指南 第2版
- matlab二维傅里叶变换ffshift,形象理解二维傅里叶变换
- 5.绘制统计图形——堆积图
- 使用多种算法挖掘Alexa域名数据
- 惠普HP Color LaserJet Pro MFP M476 打印机驱动
- k8s初级班day2
- (转)OpenGL与DirectX 比较
- C# 获取汉字的对应的全拼音和拼音首字母(含源码)
- 国家杰青,任同济大学新校长!
- 通过Web Service实现IP地址查询功能
- delphi cef写入html,Delphi XE 10.2.3使用CEF4Delphi取网页元素时碰到nbsp;变问号?的处理...
- 文科计算机课程,高校文科生要学专业计算机课程
- PySide+PyDesigner出现错误:This application failed to start because no Qt platform plugin could be initia
热门文章
- excel poi 自动换行_Java POI设置Excel背景色,边框,字体,自动换行等
- 计算机语言常见的300个英语单词,秘背完这20个句子,你已经背过300个单词!
- 2022上半年系统集成项目管理师客观题参考答题解析(3)
- P1295 [TJOI2011]书架
- IT人生—马云的创新思维
- SolidWorks手工绘制齿轮
- IDEA中使用xxx.properties文件中输入中文时乱码问题
- Zookeeper分布式锁中的羊群效应及解决方案
- 干货分享-刷票如此简单,一句js代码搞定
- Java基础(二):迭代器(Iterator)(含使用方法详解)