Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.