30.03.2020 20:51, Paul Groves пишет:
On 30/03/2020 18:39, Andrei Borzenkov wrote:
30.03.2020 20:16, Paul Groves пишет:
Hi all.
I have a question regarding SSH options with Rsync. I have an old NAS which I want to use to rsync some very large files to.
I set up a user and a folder on the NAS. I can connect easily via sftp, although I need to specify an algorithm as follows. I need to use the following command. This works great and I can transfer files fine.
sftp -oKexAlgorithms=+diffie-hellman-group1-sha1 paul@nas1:/mnt/array1/backup
However, I cannot work out how to specify the the diffle-hellman-group1-sha1 on the rsync command. Can anyone shed some light on this please?
rsync -e "ssh -oKexAlgorithms=+diffie-hellman-group1-sha1" ...
or
export RSYNC_RSH="ssh -oKexAlgorithms=+diffie-hellman-group1-sha1" rsync ...
So far I have the following:
~$ rsync -va /data paul@nas1:/mnt/array1/backup Unable to negotiate with 192.168.0.9 port 22: no matching key exchange method found. Their offer: diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1 rsync: connection unexpectedly closed (0 bytes received so far) [sender] rsync error: unexplained error (code 255) at io.c(235) [sender=3.1.3]
Thanks Paul
Hi Andrei. I have just tried as you suggested but unfortunately that does not work and I am greeted with the same error for both of those suggestions. See below.
Well, this is different error than you had before. Try adding "-vvv" to ssh options to see where it fails.
Thanks Paul
~$ rsync -e "ssh -oKexAlgorithms=+diffie-hellman-group1-sha1" -va /data paul@nas1:/mnt/array1/backup Password: Operation not permitted rsync: connection unexpectedly closed (0 bytes received so far) [sender] rsync error: error in rsync protocol data stream (code 12) at io.c(235) [sender=3.1.3]
~$ export RSYNC_RSH="ssh -oKexAlgorithms=+diffie-hellman-group1-sha1" ~$ rsync -va /data paul@nas1:/mnt/array1/backup Password: Operation not permitted
It certainly sounds like it is past failed key exchange.
rsync: connection unexpectedly closed (0 bytes received so far) [sender] rsync error: error in rsync protocol data stream (code 12) at io.c(235) [sender=3.1.3]
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org