Hosts key verification failed

  • I am trying to setup rsync to pull all the files off a server every few hours. However when I try to run the job manually as a test I get a Host key verification failed error. Normally when this happens I just delete to known hosts file and move on, but in this case I either don't have access to the file or it doesn't exist. The settings I used work fine on other devices. I am running OMV on a rpi3, but I don't think that makes a difference.
    Are there other setup steps that I missed?


    Full error message:
    Host key verification failed.
    rsync: connection unexpectedly closed (0 bytes received so far) [Receiver]
    rsync error: unexplained error (code 255) at io.c(226) [Receiver=3.1.1]

  • I think I found the issue, unfortunately there isn't anything I can do about it. I thought using the password option would work until I noticed this message: The password that is used for access via rsync daemon. Note, this is not used for remote shell transport such as ssh.


    So the only way I see to make this work is to generate ssh keys, which I cant do on the server.
    So unless anyone else has an idea I will have to move on to something else.

  • So the only way I see to make this work is to generate ssh keys, which I cant do on the server.


    Why not? ssh-keygen on Linux. Or on Windows use putty. Keys are not certificates which might be signed by a registry. They are fully private. Worst case you need to convert the keys between the two different formats but that's all.

  • The rsync server is running on an Outernet receiver. Since it is running on such limited resources (C.H.I.P) everything that is not required has been removed. I am going to post on their forum later to see if I can get this added into the next update. Thanks for your help.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!