解决Ubuntu重装系统后,导致SSH认证失败的问题
2017-10-20 12:23
555 查看
由于存放Git代码库的Ubuntu服务器重新安装了系统,所以导致SSH认证失败。当在本地执行Git命令时,会提示如下的错误信息:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that the RSA host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
a3:63:3a:0a:6a:18:fb:f6:f6:66:90:29:d0:22:e8:07.
Please contact your system administrator.
Add correct host key in /c/Documents and Settings/username/.ssh/known_hosts to get rid of this message.
Offending key in /c/Documents and Settings/username/.ssh/known_hosts:2
RSA host key for [100.130.100.99]:222 has changed and you have requested strict checking.
Host key verification failed.
fatal: The remote end hung up unexpectedly
其实解决方法很简单,就是将提示中C:/Documents and Settings/username/.ssh/known_hosts文件的内容清空,然后重新执行Git命令即可。
如果是在Ubuntu系统下,则应修改~/.ssh/known_hosts文件。
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that the RSA host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
a3:63:3a:0a:6a:18:fb:f6:f6:66:90:29:d0:22:e8:07.
Please contact your system administrator.
Add correct host key in /c/Documents and Settings/username/.ssh/known_hosts to get rid of this message.
Offending key in /c/Documents and Settings/username/.ssh/known_hosts:2
RSA host key for [100.130.100.99]:222 has changed and you have requested strict checking.
Host key verification failed.
fatal: The remote end hung up unexpectedly
其实解决方法很简单,就是将提示中C:/Documents and Settings/username/.ssh/known_hosts文件的内容清空,然后重新执行Git命令即可。
如果是在Ubuntu系统下,则应修改~/.ssh/known_hosts文件。
相关文章推荐
- 解决台式机(英伟达GTX1070显卡)安装Ubuntu系统显示错误导致安装失败的问题
- 解决ubuntu系统安装成功后SSH连接不上的问题
- Ubuntu Grub Rescue 解决Windows分区导致Ubuntu 12.10无法启动的问题以及设定双系统的优先引导顺序
- ubuntu 安装ORACLE JDK失败后导致的系统错误及UPDATE错误的解决办法
- 卸载vmware不干净导致的重装vmware失败的问题解决
- ubuntu之路——解决ubuntu+win8双系统循环进入启动界面导致无法启动win8的问题
- 关于Ubuntu桌面系统su root时认证失败的问题
- 解决ubuntu 14.04删除ibus后导致系统设置丢失项目,注销关机不正常的问题
- [Unity&重装系统]重装系统导致Unity 缺失MSVCR100.dll问题解决办法
- 解决服务器重装系统导致的mac终端无法连接的问题
- 解决在windows系统中删除ubuntu系统分区导致重启后提示grub rescue,不能进入windows系统的问题。
- ubuntu系统su:认证失败问题
- 解决Win10系统由于INF文件失效导致安卓MTP驱动安装失败的问题
- 解决ubuntu+win10双系统循环进入启动界面导致无法启动win10的问题
- grub rescue 方法,解决重装windows系统导致的linux无法启动问题
- 解决ubuntu 14.04删ibus导致系统设置项目的损失后,,退出关机问题是不正常的
- So easy! 一分钟解决 “重装windows系统,无法引导进ubuntu”的问题
- 解决ssh或ftp下root用户认证失败问题
- Win10+Ubuntu16.04双系统安装教程之2-重装Ubuntu16.04以解决grub2引导问题
- Ubuntu中使用SSHSecure Shell测试Windows与Linux系统间操作及传输问题解决大全