Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have gentoo Linux.

I want to RSync to a remote machine that I need to SSH twice to get into.

how can I do that in one command ?

I used to do that with one command but I forgot how!

I used to do that without port forwarding.

I saved that ssh details in some file somehow but I forgot what exactly I did.

any ideas?

share|improve this question
up vote 3 down vote accepted

Like this:

rsync -avn /src -e "ssh user@intermidiate-host ssh" user@firewalled-host:/dst
share|improve this answer
wow.. that's not what i meant. that's way better. – ufk Jan 2 '13 at 7:42

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.