I use VPS from DigitalOcean.
First generated ssh key: ssh-keygen -t rsa . Then he added it to the security of the droplet itself, having previously copied it like this: cat ~/.ssh/id_rsa.pub .
When connecting via ssh root@[your.ip.address.here] throws an exception:

Host key verification failed

What could it be?

    1 answer 1

    when connecting via ssh root@[your.ip.address.here] discards - Host key verification failed . What could it be?

    due to the fact that the impression ( fingerprint ) of the key, which the second party ( [your.ip.address.here] ) offers to encrypt data, does not coincide with the saved impression.

    perhaps the change of the key by the second side is somehow connected with your actions - he added it to the security of the droplet itself . I have no idea what kind of “droplet” it is and what it may have for “security”, but if you are sure that it should have been like this, you can delete the previous saved impression:

     $ ssh-keygen -R [your.ip.address.here] 
    • Tried to delete the previous saved cast and throws an exception in the form: Host [your.ip.address.here] not found in ~ / .ssh / known_hosts - dev.user
    • perhaps the change of the key by the second side is somehow connected with your actions - he added it to the security of the droplet itself. I have no idea what kind of “droplet” it is and what it can have for “security” - so we tell our server our public ssh key - dev.user
    • @ dev.user, please provide the full text of the error. You can edit the question by clicking "edit" below the text of the question. - aleksandr barakin
    • I know how to edit the question) completely and wrote the error, once again I can write: Host key verification failed - dev.user
    • by the way, and I had to create known_hosts myself, since it was missing from me, but for that, some known_hosts.ZXt8IKEKO3 appeared - dev.user