Please contact your system administrator. Add correct host key in /Users/*********/.ssh/known_hosts
Please contact your system administrator. Add correct host key in /Users/***/.ssh/known_hosts
macOS系统下ssh root@hostname时遇到如下问题的解决方案:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
The RSA host key for********.com has changed,
and the key for the corresponding IP address ****
is unknown. This could either mean that
DNS SPOOFING is happening or the IP address for the host
and its host key have changed at the same time.
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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
************************.
Please contact your system administrator.
Add correct host key in /Users/***/.ssh/known_hosts to get rid of this message.
Offending key in /Users/*/.ssh/known_hosts:1
RSA host key for************** has changed and you have requested strict checking.
Host key verification failed.
方法1:使用TextMate之类的文本编辑器打开~/.ssh/known_hosts的文件,把hostname对应的行删掉(行首就是你的hostname了,注意:这里的行通常很长,编辑器可能会自动换行。找不到对应的行就全删了也没关系,怕出问题的话可以先备份一下),重新执行命令即可。
方法2:使用命令行工具(推荐iTerm)执行ssh-keygen -R hostname
即可。
参考文档:
- Access to .ssh/known_hosts | Official Apple Support Communities
- ssh-keygen(1) - Linux man page
Please contact your system administrator. Add correct host key in /Users/*********/.ssh/known_hosts相关推荐
- Please contact your system administrator. Add correct host key in /Users/***/.ssh/known_hosts
Please contact your system administrator. Add correct host key in /Users/***/.ssh/known_hosts macOS系 ...
- Please contact your system administrator. Add correct host key in
可以把/home/hadoop/.ssh/known_hosts文件删了,然后重新生成配对密钥即可 # sudo apt-get openssh-server # ssh-keygen -t rsa ...
- scp传文件时报错Add correct host key in /root/.ssh/known_hosts to get rid of this message
在两个服务器之间用scp命令传文件时报错 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOT ...
- ssh:使用ssh链接服务器的时候报错 Add correct host key in /root/.ssh/known_hosts to get rid of this message
今天在公司内网登陆阿里云服务器的时候,执行ssh报错,提示 Add correct host key in /root/.ssh/known_hosts to get rid of this mes ...
- centos升级openssh之后,连接报错Add correct host key in /root/.ssh/known_hosts to get rid of this message
报错提示 Add correct host key in /root/.ssh/known_hosts to get rid of this message 解决办法: rm ~/.ssh/known ...
- ssh远程出错Add correct host key in /home/xxx/.ssh/known_hosts to get rid of this message
ssh远程出错 scp 远程复制文件出错 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE H ...
- Add correct host key in C:\\Users\\xxx/.ssh/known_hosts to get rid of this message.
一.问题描述 云服务器ECS的系统从windows 10(操作系统) 换成CentOS(操作系统)的时候,在本地主机的windows 10 控制台Windows PowerShell用 ssh 连接到 ...
- Offending key for IP in /root/.ssh/known_hosts:1 Matching host key in /root/.ssh/known_hosts:6
在使用ssh配置免密时碰到的问题. 记得之前在配置免密时也遇到另一个问题:RSA host key for chdp03 has changed and you have requested stri ...
- ssh 远程服务器 Host key verification failed.【known_hosts】
(阅读时间30S) 这一类问题,一般都是你的known_hosts保存了网络身份验证证书,更换了环境去访问,就会被服务器拒绝. 按照错误提示的/c/Users/HASEE/.ssh/known_hos ...
最新文章
- Python把matplotlib绘制的水平条形图(horizontal bar)转化为竖直的柱状图(vertical bar)实战
- win10 安装pydot
- java display.getdefault()_java基础(十一 )-----反射——Java高级开发必须懂的
- idea 自动生产序列吗,IDEA自动生成序列化Id
- 在计算机英语中 input的意思是,计算机英语词汇解释
- Deadlock found when trying to get lock; try restarting transaction 【MySQL死锁问题解决】
- 双击jar包无法运行
- 合同管理数据库设计mysql_工程合同管理信息系统的数据设计理念
- 诊断2018微商:从乱象到赋能,世界微商大会发明的新玩法为您指路
- 新贵 轻雅 100 数字键 numlock问题
- docker - 安装searx搜索引擎
- python代码怎么变成软件_从Python代码到APP,你只需要一个小工具:GitHub已超6000星
- MAC 如何配置 PCL 库并在 VS Code 中使用
- fastjson中JSONArray和JSONObject
- 国开电大 个人与团队管理 形考任务1-10
- 黄仁勋骗过了全世界,三个多月都没人发觉!皮衣是假的厨房是假的,连他自己都是假的...
- HTML5 移动应用开发的生态环境简介
- Qt开发经验小技巧241-245
- js之生成并下载txt文件
- 谈谈应届毕业生求职的问题