Cara mengatasi Error Host Key Verification Failed SSH


Step by step :

  1. # ssh-keygen -R [hostname|IP address]
  2. Contoh sample
    $ ssh-keygen -R 192.168.219.149
    # Host 192.168.219.149 found: line 3
    /home/anubis/.ssh/known_hosts updated.
    Original contents retained as /home/anubis/.ssh/known_hosts.old
  3. Proses verifikasi baru fingerprint ssh
    $ ssh root@192.168.219.149
    The authenticity of host '192.168.219.149 (192.168.219.149)' can't be established.
    ECDSA key fingerprint is SHA256:V+iGp3gwSlnpbtYv4Niq6tcMMSZivSnYWQIaJnUvHb4.
    Are you sure you want to continue connecting (yes/no)? yes
    Warning: Permanently added '192.168.219.149' (ECDSA) to the list of known hosts.

Di tulis oleh: