RSA host key has changed(SSH 远程无法使用)
2017-02-01 14:06
423 查看
Condition Statement
bogon:~ andyma$ ssh root@121.42.178.112 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ 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 SHA256:ROc7Y28voTE0Gd9Zzun+UjNt++xp4zg/4qjkVwitIxc. Please contact your system administrator. Add correct host key in /Users/andyma/.ssh/known_hosts to get rid of this message. Offending RSA key in /Users/andyma/.ssh/known_hosts:4 RSA host key for 121.42.178.112 has changed and you have requested strict checking. Host key verification failed.
Reason
这是Linux重装或者openssh-server重装引起的。
Solution
ssh-keygen -R IP 从 known_hosts 文件中删除所有属于 hostname 的密钥。 这个选项主要用于删除经过散列的主机(参见 -H 选项)的密钥。
相关文章推荐
- ssh远程登录出现:RSA host key for *.*.*.* has changed...的解决办法
- ssh远程登录出现:RSA host key for *.*.*.* has changed的解决办法
- SSH:RSA host key has changed
- linux下ssh或scp出现RSA host key for has changed
- RSA host key has changed,ssh公钥分发失败
- SSH RSA host key for has changed and you have requeste
- SSH RSA host key for has changed and you have requeste
- SSH:RSA host key has changed
- SSH RSA host key for has changed and you have requeste
- NetBSD could not load host key: /etc/ssh/ssh_host_rsa_key 无法启动ssh的一个解决办法
- RSA host key for has changed
- RSA host key has changed 错误
- RSA host key for HOST has changed and you have requested strict checking
- SCP命令只能单项拷贝,另一个方向“RSA host key for 172.16.103.176 has changed and you have requested strict checki H
- RSA host key has changed 错误
- RSA host key has changed 错误
- RSA host key has changed
- could not load host key: /etc/ssh/ssh_host_rsa_key SSH无法连接
- sshd 无法启用的问题 Could not load host key: /etc/ssh/ssh_host_rsa_key Could not load host key: /etc/ssh/ss
- ssh 远程链接时出现错误提示:WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED