Another way: # Open a connection to the remote host and # create a control socket at /tmp/ssh_socket ssh -S /tmp/ssh_socket -M -N -f host.example.com # Use the control socket to transfer files. scp -o ControlPath=/tmp/ssh_socket file1 dummy:remote_file1 scp -o ControlPath=/tmp/ssh_socket file2 dummy:remote_file2 # etc. # or with rsync... rsync --rsh="ssh -S /tmp/ssh_socket" -av /local/dir/ dummy:/remote/dir/ # Bring the connection down. ssh -S /tmp/ssh_socket -O exit dummy The "dummy" host above can be anything, it doesn't matter since you have already specified the socket to send things through. Cheers, Andreas On 15/08/07, James Hartley <jjhartley@gmail.com> wrote:-- Andreas Kahari Somewhere in the general Cambridge area, UK
| Alan Cox | [PATCH 01/76] drivers/serial/crisv10.c: add missing put_tty_driver |
| Greg Kroah-Hartman | [PATCH 004/196] Chinese: add translation of SubmittingPatches |
| James Bottomley | Re: Integration of SCST in the mainstream Linux kernel |
| Ingo Molnar | [bug] mm/slab.c boot crash in -git, "kernel BUG at mm/slab.c:2103!" |
git: | |
| Jon Smirl | Re: VCS comparison table |
| Junio C Hamano | [RFD] On deprecating "git-foo" for builtins |
| Jakub Narebski | Re: [RFC] Git User's Survey 2008 |
| Eric Wong | [PATCH] archimport improvements |
| Richard Stallman | Real men don't attack straw men |
| GVG GVG | ssh_exchange_identification: Connection closed by remote host |
| David H. Lynch Jr. | Re: That whole "Linux stealing our code" thing |
| Marcos Laufer | dmesg IBM x3650 OpenBSD 4.3 |
| Jeff Garzik | Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin" |
| David Miller | [GIT]: Networking |
| Mark Lord | Re: 2.6.25-rc8: FTP transfer errors |
| David Miller | Re: [BUG] New Kernel Bugs |
