Please contact your system administrator. Add correct host key in /Users/*********/.ssh/known_hosts
来源:互联网 发布:淘宝买家旺旺 编辑:程序博客网 时间:2024/04/30 14:56
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
- 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
- GNOME Power Manager not installed correctly. Please contact your system administrator
- sonarqube 汉化 An error has occurred. Please contact your administrator
- Your account has expired; please contact your system
- 如何解决“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
- ssh登陆忽略known_hosts文件(ssh 登陆提示Host key verification failed.)
- An error occurred on the server when processing the URL. Please contact the system administrator.
- An error occurred on the server when processing the URL. Please contact the system administrator
- You have encountered an unexpected error. Please contact the System Administrator for assistance
- Can't find X includes. Please check your installation and add the correct paths!
- 网站出现An error occurred on the server when processing the URL. Please contact the system administrator
- 20110323_BMXAA7901E - You cannot log in at this time. Contact the system administrator
- Rockie's Android Porting Guide(3)——Add correct keymap to your system
- 多个条件的条件编译
- Apache CXF 2.7与Spring 3集成
- Linux的NTP配置总结
- Markdown 你需要掌握的小方法
- Problem 9 Special Pythagorean triplet (毕达哥拉斯三元数组...)
- Please contact your system administrator. Add correct host key in /Users/*********/.ssh/known_hosts
- 史上最全的浏览器兼容性问题和解决方案
- 学校学习ios教程笔记,第五节swift中的字典以及枚举的概念与操作和初识函数
- Loop、Handler、MessageQueue和Message源码分析
- 博通“toolchain”搭建——准备篇!
- getColor(int id)在API23时过时
- 【NOI OJ】直接飞过去做题~~~
- Python - rq / mrq / Celery
- JQuery中的全选、反选、批删、即点即改