RSYNC SSH help needed

  • HI!
    Can someone help me to understand how to setup RSYNC over SSH between 2 OMV computers.


    I'm going to have one of my server for backup and it will be located somwhere else using internet.
    I have succeeded with Rsync without SSH. My problem is to manage the certificates and where to put them.


    Kind regards
    Ulf

  • Hi.
    1. create ssh keys ( I would recommend to import existing, created by ssh-keygen command and tested connection) in certificates tab, name it, save it and apply settings
    2. copy pub part of the key to a remote server (you can copy pub part via OMV webgui in certificates tab or via cat ~/.ssh/id_rsa.pub command, next open terminal, login to a remote server and paste it to ~/.ssh/authorized_keys, if you've connected before, you don't have to do that cause you pub key is already there, remember to open firewall port for ssh connection (default is 22) and allow your OMV IP address to access your server, make the proper routings on your router
    3. go to rsync tab and create task, choose created ssh certificate, make adjustements, save and apply settings
    4. run the task for tests
    Good luck!

    "Given enough eyeballs, all bugs are shallow"
    ESR.

    2 Mal editiert, zuletzt von Jap0 ()

  • Hi thanks
    But i get this message when i try to run from the push machine!


    Please wait, syncing </media/0da7aa86-d499-41ce-a901-6daf05b447a1/Arkiv/> to <ulf@172.16.0.138::backup> ...



    Identity added: /etc/ssh/openmediavault-bf23431e-cdb4-4c21-9588-fca19441daa8 (rsa w/o comment)
    Permission denied, please try again.
    Permission denied, please try again.
    Permission denied (publickey,password).
    rsync: did not see server greeting
    rsync error: error starting client-server protocol (code 5) at main.c(1653) [sender=3.1.1]

  • Open Rsync tab / Jobs / Edit your job and at the bottom in Extra Options add:
    -e "ssh -v"
    Save, apply and run it again. You'll see more informations about the error.
    Did you open SSH port, add firewall rules?


    Try to connect via terminal first.

    "Given enough eyeballs, all bugs are shallow"
    ESR.

    Einmal editiert, zuletzt von Jap0 ()

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!