Rsync over ssh over proxy

PROXYrsyncssh

My computer currently has access to the internet only through a proxy, thus I'm forwarding my ssh connection to port 8080 through corkscrew.

I need to run rsync over this ssh connection – does anyone know how to make it work? Just typing "rsync username@destination-ssh-server:folder-name" doesn't work since this doesn't forward the ssh traffic to port 8080.

Thanks

Best Answer

I was able to do this using the command

rsync -v -e ssh Host:remote-folder destination-folder

where Host was a host configuration in my .ssh/config file that used corkscrew using the ProxyCommand declaration.

Related Question