Mình sử dụng VPS, hôm nay khi login SSH qua terminal/cmd của windows thì thấy thông báo lỗi Host key verification failed. Xin hỏi nguyên nhân và cách khắc phục ạ.
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:/rvZHFrt8Y0q9pqxTIiIESkxNzTPNm3MGXZmobllS9s.
Please contact your system administrator.
Add correct host key in C:\\Users\\thaid/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in C:\\Users\\thaid/.ssh/known_hosts:19
Host key for xxx.xx.xx.xx has changed and you have requested strict checking.
Host key...
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:/rvZHFrt8Y0q9pqxTIiIESkxNzTPNm3MGXZmobllS9s.
Please contact your system administrator.
Add correct host key in C:\\Users\\thaid/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in C:\\Users\\thaid/.ssh/known_hosts:19
Host key for xxx.xx.xx.xx has changed and you have requested strict checking.
Host key verification failed.
known_host
được lưu ở C:\\Users\\thaid/.ssh/
bạn chỉ cần truy cập vào folder chứa file key known_host
và xoá file này đi là được.C:\\Users\\thaid/.ssh/known_hosts
, bạn chỉ cần xoá toàn bộ nội dung trong đó bằng một lệnh echo
là xongecho > C:\\Users\\thaid/.ssh/known_hosts