[email protected] p But there was a mist...">

当前位置:网站首页>Day 246/300 SSH connection prompt "remote host identification has changed!"

Day 246/300 SSH connection prompt "remote host identification has changed!"

2022-07-06 06:40:00 Arden Zhao

( One ) demand

I want to connect to the remote server. Both password free login and command line report errors ssh [email protected] - p But there was a mistake , as follows :

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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 ED25519 key sent by the remote host is
SHA256:vdHz3zOlFnQs/O+IkQCmN8FjCUSHJsKgVkD1+7KvmlA.
Please contact your system administrator.
Add correct host key in /Users/zhaoarden/.ssh/known_hosts to get rid of this message.
Offending ED25519 key in /Users/zhaoarden/.ssh/known_hosts:14
Host key for 47.93.247.224 has changed and you have requested strict checking.
Host key verification failed.

( Two ) analysis

SSH The accessed public keys will be cached in (public key);
On next visit ,SSH Will check the public key , If you don't , There will be an error .
So as not to receive DNS Equal attack of ;

( 3、 ... and ) resolvent

Mac edition , find known_hosts file ,/Users/zhaoarden/.ssh/known_hosts

Delete the corresponding IP The corresponding public key is OK 了 .

Connect again .

Write it at the end

On the way to study , Often slack off 《 There are students who want to learn technology and need supervision ~》

https://mp.weixin.qq.com/s/FyuddlwRY7DsHUejCjiVug

Reference link

https://cloud.tencent.com/developer/article/1508166

原网站

版权声明
本文为[Arden Zhao]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/187/202207060628285013.html