Please contact your system administrator. Add correct host key in /Users/***/.ssh/known_hosts
2018-01-24 09:21
423 查看
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 [b]****[/b]
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
[b]************************[/b].
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即可
相关文章推荐
- 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
- Offending RSA key in /Users/liuhang/.ssh/known_hosts:7
- 转:How to troubleshoot Enterprise Portal error ”Unable to render content due to an error. Please contact your system administrator."
- 如何解决“Offending key in ~/.ssh/known_hosts” file
- ssh登陆忽略known_hosts文件(ssh 登陆提示Host key verification failed.)
- 如何解决“Offending key in ~/.ssh/known_hosts” file
- Your account has been locked out. Please contact the system administrator for further assistance.
- 如何解决“Offending key in ~/.ssh/known_hosts” file
- ssh : how to add "hostkey" to “know_hosts”
- "Your computer could not be joined to the domain. You have exceeded the maximum number of computer accounts you are allowed to create in this domain. Contact your system administrator to have this limit reset or increased."
- GNOME Power Manager not installed correctly. Please contact your system administrator
- 如何解决“Offending key in ~/.ssh/known_hosts” file
- 解决ssh不能添加已访问的主机到信任列表的问题(Failed to add the host to the list of known hosts)
- 解决ssh不能添加已访问的主机到信任列表的问题(Failed to add the host to the list of known hosts) .
- How to deal with "Could not find component on update server. Contact VMware Support or your system administrator." in Vmware.
- Error:An internal error occurred,please contact your system administrator
- Failed to add the host to the list of known hosts 问题解决
- An error occurred on the server when processing the URL. Please contact the system administrator.
- Rockie's Android Porting Guide(3)——Add correct keymap to your system