Offending RSA key in /Users/liuhang/.ssh/known_hosts:7
来源:互联网 发布:如何把excel导入mysql 编辑:程序博客网 时间:2024/04/30 13:06
用ssh登录一个机器(换过ip地址),提示输入yes后,屏幕不断出现y,只有按ctrl + c结束
错误是:The authenticity of host 192.168.0.xxx can't be established.
执行ssh -o StrictHostKeyChecking=no 192.168.0.xxx 就OK
某天机器又改IP了,ssh后,报:
mmt@FS01:~$ ssh -o StrictHostKeyChecking=no 192.168.0.130
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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 a host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
16:d1:6c:31:e1:8a:b1:5c:ca:4f:d9:0a:be:d3:38:c5.
Please contact your system administrator.
Add correct host key in /Users/liuhang/.ssh/known_hosts to get rid of this message.
Offending RSA key in /Users/liuhang/.ssh/known_hosts:7
RSA host key for 192.168.1.130 has changed and you have requested strict checking.
Host key verification failed.
注意这句
Add correct host key in /home/mmt/.ssh/known_hosts to get rid of this message.
执行:
mv /home/mmt/.ssh/known_hosts known_hosts.bak
再连:
ssh -o StrictHostKeyChecking=no 192.168.0.130
OK了!
- Offending RSA key in /Users/liuhang/.ssh/known_hosts:7
- 如何解决“Offending key in ~/.ssh/known_hosts” file
- 如何解决“Offending key in ~/.ssh/known_hosts” file
- 如何解决“Offending key in ~/.ssh/known_hosts” file
- 如何解决“Offending key in ~/.ssh/known_hosts” file
- Please contact your system administrator. Add correct host key in /Users/*********/.ssh/known_hosts
- linux内网SSH,SCP登录其他服务器Add correct host key in /root/.ssh/known_hosts to get rid of this message
- ssh登陆忽略known_hosts文件(ssh 登陆提示Host key verification failed.)
- 删除ssh默认known_hosts
- /home/User/.ssh/known_hosts
- 删除ssh中旧的RSA key
- SSH:RSA host key has changed
- Public Key RSA Encryption in C# .NET
- ssh登陆之忽略known_hosts文件
- SSH登陆之忽略known_hosts文件
- ssh登陆之忽略known_hosts文件
- ssh登陆之忽略known_hosts文件
- How to Use RSA Key for SSH Authentication
- php文件上传类
- mysql查询今天、昨天、7天、近30天、本月数据
- 最全Pycharm教程(26)——Pycharm搜索导航之文件名、符号名搜索
- httpd-vhosts.conf配置文件理解
- JQuery AJAX调用WEB SERVICE方法
- Offending RSA key in /Users/liuhang/.ssh/known_hosts:7
- 《Web全栈工程师的自我修养》读书笔记
- MySql查询时间段的方法
- OperationDemo2
- 值得推荐的C/C++框架和库 (真的很强大)
- 位运算符
- centos 中使用 Docker 搭建 Java Web 运行环境
- 自定义view-绘图时钟
- Deep Learning 读书笔记(一)