Ketika install ulang terhadap pc server di jaringan lokal saat akan melakukan konelsi ssh muncul pesan seperti ini :
> ssh adminx@192.168.1.15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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:G0tVKlMo7vkykmjoBaHwxxxxx4cxw6ILKwjZBYmOjI.
Please contact your system administrator.
Add correct host key in C:\\Users\\windows/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in C:\\Users\\windows/.ssh/known_hosts:11
ECDSA host key for 192.168.1.15 has changed and you have requested strict checking.
Host key verification failed.
===
Pesan ini muncul karena host key SSH dari server 192.168.1.15
telah berubah dibandingkan dengan yang sebelumnya tersimpan di file known_hosts
di komputer Anda. Ini bisa terjadi karena:
-
Server
192.168.1.15
baru diinstal ulang. -
SSH key server di-reset atau diganti.
-
Anda sedang menghubungkan ke perangkat berbeda dengan IP yang sama (kemungkinan man-in-the-middle attack — atau hanya perubahan server lokal).
🔧 Cara Mengatasinya
Untuk menghapus entri lama yang menyebabkan error, lakukan:
Cara 1: Hapus entri tertentu (baris ke-11)
Buka PowerShell dan jalankan:
> ssh-keygen -R 192.168.1.15