Error Remote Host Identification

Pada saat remote login ke server yang baru reinstall OS maka akan muncul pesan error :

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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:X/YcdnsAncvcIu4rpUrtzUJdUOx+PE2rTREafAfwQZ8.
Please contact your system administrator.
Add correct host key in /home/misterebs/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /home/misterebs/.ssh/known_hosts:2
ECDSA host key for 103.148.192.183 has changed and you have requested strict checking.
Host key verification failed.

Ini terjadi karena adanya perubahan identitas/finger print server yang pernah dicatat oleh komputer kita pada file .ssh/known_hosts.

Untuk membuang identitas server yang lama, gunakan perintah di bawah :

ssh-keygen -f "/home/misterebs/.ssh/known_hosts" -R 103.148.192.183

Jika sudah, lakukan remote login kembali untuk autentikasi identitas baru di komputer lokal, maka keluar pertanyaan :

The authenticity of host '103.148.192.183 (103.148.192.183)' can't be established.
ECDSA key fingerprint is SHA256:X/YcdnsAncvcIu4rpUrtzUJdUOx+PE2rTREafAfwQZ8.
Are you sure you want to continue connecting (yes/no/[fingerprint])?

Jawab “yes” untuk menyimpan identitas server baru secara permanan di komputer lokal dengan notifikasi sebagai berikut :

Warning: Permanently added '103.148.192.183' (ECDSA) to the list of known hosts.