Why rsync with jump host and sshpass not working

562 Views Asked by At

I'm trying to rsync with 'sshpass' and using jump host to transform a file.

The command I am using is -

rsync -azv -e 'sshpass -p passwordToTargetHost ssh -oProxyCommand="sshpass -p passwordToJumpHost user@JumpHost" user@TargetHost' :/path/to/target /path/to/originFile

But I am getting -

-bash: line 1: SSH-2.0-OpenSSH_7.6p1: command not found

Any help?

0

There are 0 best solutions below