Running a rsync command to an old server, specifying a different HostKeyAlgorithm fails very strangely on OpenSuSE
rsync -av --stats --delete '-oHostKeyAlgorithms=+ssh-dss' root@192.168.1.1:/data/path/ /local/path/
rsync: [Receiver] Failed to exec yAlgorithms=+ssh-dss: No such file or directory (2)
rsync error: error in IPC code (code 14) at pipe.c(85) [Receiver=3.2.3]
rsync: connection unexpectedly closed (0 bytes received so far) [Receiver]
rsync error: error in IPC code (code 14) at io.c(228) [Receiver=3.2.3]
No such file or directory.... IPC code (code 14)
What? 🤔
I don't know exactly what's causing this, but a workaround seems to be to use the -e option and to supply this command to your ssh shell
rsync -av --stats --delete -e "ssh -o HostKeyAlgorithms=+ssh-dss" root@192.168.1.1:/data/path/ /local/path/