Hello!
I have all my pictures in a RAID 1 array, but I also wanna back them up with Rsync to another NAS, a Netgear ReadyNAS 1100 to be precise.
Since the destination is a bit old, the only SSH cipher they offer are diffie-hellman-group-exchange-sha1, diffie-hellman-group14-sha1, and diffie-hellman-group1-sha1.
I did a SSH config file on the OMV machine for both the Backup, and root user, but, as you can see in the error, it refuses to connect because by default SSH doesn't accept the remote cipher's.
Here's my scheduled task command, run by the Backup user: rsync -av --relative --progress --stats --no-relative -e ssh -F /home/Backup/.ssh/config /srv/dev-disk-by-uuid-000c0481-55dd-4e44-b0ac-9bb3d7ed0513/ root@192.168.70.200:/c/photos/
The SSh config file both for the Backup user, and root user:
Error:
Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; export SHELL=/bin/sh; sudo --shell --non-interactive --user='backup' -- /var/lib/openmediavault/cron.d/userdefined-c56aed0a-faf1-481b-82bf-9b78cb062575 2>&1' with exit code '255': Unable to negotiate with 192.168.70.200 port 22: no matching key exchange method found. Their offer: diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: unexplained error (code 255) at io.c(228) [sender=3.2.3]
OMV\ExecException: Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; export SHELL=/bin/sh; sudo --shell --non-interactive --user='backup' -- /var/lib/openmediavault/cron.d/userdefined-c56aed0a-faf1-481b-82bf-9b78cb062575 2>&1' with exit code '255': Unable to negotiate with 192.168.70.200 port 22: no matching key exchange method found. Their offer: diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: unexplained error (code 255) at io.c(228) [sender=3.2.3] in /usr/share/openmediavault/engined/rpc/cron.inc:198
Stack trace:
#0 /usr/share/php/openmediavault/rpc/serviceabstract.inc(620): Engined\Rpc\Cron->Engined\Rpc\{closure}('/tmp/bgstatusnR...', '/tmp/bgoutput9w...')
#1 /usr/share/openmediavault/engined/rpc/cron.inc(201): OMV\Rpc\ServiceAbstract->execBgProc(Object(Closure))
#2 [internal function]: Engined\Rpc\Cron->execute(Array, Array)
#3 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
#4 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('execute', Array, Array)
#5 /usr/sbin/omv-engined(537): OMV\Rpc\Rpc::call('Cron', 'execute', Array, Array, 1)
#6 {main}
Display More