rsync and ssh port forwarding

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I must ssh to a remote machine B by port forwarding via machine A.
Thus, in the background on the local machine, I have running:

ssh -N A.WorkDomain  -L  N:B:22  

where N is the localhost port that has been forwarded.

This allows me to do things like
`ssh localhost -p N'  and  `scp -P N localhost:/tmp/foo /tmp'

I now want to rsync a directory on B to my local machine using
`rsync -e ssh'

At work I'd just do (say) :

rysnc -a -e ssh --delete B:/tmp/ /tmp/

But from home it seems that I must do something like

rysnc -a -e ssh -p N --delete localhost:/tmp/ /tmp/

The problem is that there doesn't appear to be any such rsync flag.

Or am I just missing the flag among the gajillion or so rsync flags?

Dean

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux