rsync through an ssh server
Posted Tue, 05 Aug 2008
I have a host (let's call it filer) that is only accessible through a bastion
server. Here's how to rsync directly do that host:
rsync -e 'ssh bastion ssh' somefile.tar.gz filer:I haven't posted much recently due to my wedding coming soon and being extremely busy with work. I've been learning a great deal of new tools recently, so expect some brain dumps about some of the following:
- lvm
- qemu
- windows hackery
Host filer
ControlPath ~/.ssh/master-filer
ProxyCommand ssh bastionhost nc %h 22
you can now just "ssh filer" or "rsync ... filer:" without any "-e" noise. (hope that comes through cleanly -- a comment-preview would be nice ;)
The "ControlPath" gives you cached connections, too, very handy....