linux中远程连接(如SCP)出现someone could be eavesdropping on you right now的解决办法
今天用SSH连接我的远程主机,出现了以下错误:
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
因为keys 发生变化,建议先备份在删除(如果是生产一定要备份)
rm -rf .ssh/known_hosts
[root@qudao cas-server]# rm -fr ~/.ssh/known_hosts