哈喽哇,今天在访问远程服务器的时候,出现了一个小问题。 一、发现问题 问题如下图代码: $ ssh root@108.61.163.242 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ 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 ECDSA key sent by the remote host is SHA256:HDjXJvu0VYXWF+SKMZjSGn4FQmg/+w6eV9ljJvIXpx0. Please contact your system administrator. Add correct host key in /Users/wangdong/.ssh/known_hosts to get rid of this message. Offending ECDSA key in /Users/wangdong/.ssh/known_hosts:46 ECDSA host key for 108.61.163.242 has changed and you have requested strict checking. Host key verification failed. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 这里面,有一句很关键。 ECDSA host key for 108.61.163.242 has changed and you have requested strict checking. Host key verification failed. 1 2 一般这个问题,是你重置过你的服务器后。你再次想访问会出现这个问题。 二、解决问题 解决问题也很简单: ssh-keygen -R 你要访问的IP地址 1 例如: ssh-keygen -R 108.61.163.242 1 贴个图更直观 好啦。很简单的一个小问题。 搞技术,还是得一点一滴的慢慢积累。不积硅步无以至千里。 |
|手机版|小黑屋|梦想之都-俊月星空
( 粤ICP备18056059号 )|网站地图
GMT+8, 2025-7-1 19:08 , Processed in 0.027887 second(s), 18 queries .
Powered by Mxzdjyxk! X3.5
© 2001-2025 Discuz! Team.