Create a local backgrounded SSH tunnel that connects through the JumpHost

ssh -f -N -L <local_port>:<server>:<server_port> -p <jump_port> <user>@<jump_server>

Rsync the local files through the SSH tunnel

rsync -ravzP -e "ssh -p <local_port>" /local_path/file <server_user>@localhost:/remote_path/

 

Tags