ssh login error fix solution:ECDSA host key for xxx has changed and you have
Posted yangzhenping
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ssh login error fix solution:ECDSA host key for xxx has changed and you have相关的知识,希望对你有一定的参考价值。
ssh login error:ECDSA host key for xxx has changed and you have
$ ssh ec2-user@ec2-192-168-1-1.compute-1.amazonaws.com
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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:hotsxb/qVi1/ycUU2wXF6mfGH++Yk7WYZv0r+tIhg4I.
Please contact your system administrator.
Add correct host key in /Users/scott/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /Users/scott/.ssh/known_hosts:12
ECDSA host key for ec2-192-168-1-1.compute-1.amazonaws.com has changed and you have requested strict checking.
Host key verification failed.
Linux fix solution:
mkdir -p ~/.ssh
echo 'Host *
StrictHostKeyChecking no
UserKnownHostsFile=/dev/null'>~/.ssh/config
Windows fix solution:
md C:\\Users\\yourcurrentuser\\.ssh
echo 'Host *
StrictHostKeyChecking no
UserKnownHostsFile=/dev/null'>C:\\Users\\yourcurrentuser\\.ssh\\config
以上是关于ssh login error fix solution:ECDSA host key for xxx has changed and you have的主要内容,如果未能解决你的问题,请参考以下文章
ssh login error fix solution:ECDSA host key for xxx has changed and you have
ssh login error fix solution:ECDSA host key for xxx has changed and you have
fix Ubuntu 18.04 cannot login in GUI
Ubuntu apt-get install 报错Try ‘apt --fix-broken install‘ with no packages (or specify a solution).