接了一台舊電腦(Ubuntu 18.04),把網路線插在同一個交換機上
想用SSH連線時卻跳出警訊,不給連線
$ ssh gjlmotea@192.168.1.24
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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:n8PolIP6at4Sl4+b/oMj4wvC1b7ibwRaJdBSXeoslG8.
Please contact your system administrator.
Add correct host key in /c/Users/gp6vu86/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /c/Users/gp6vu86/.ssh/known_hosts:4
ECDSA host key for 192.168.1.24 has changed and you have requested strict checking.
Host key verification failed.
解決辦法:
在Client端打上以下 (欲連線電腦的IP)
$ ssh-keygen -R 192.168.1.24
再重新SSH一次
$ ssh gjlmotea@192.168.1.24
便可進行連線