P
P
projector2010-11-23 04:11:48
SSH
projector, 2010-11-23 04:11:48

Copying files through an intermediate server?

There are three machines, all running freebsd. #1 and #3 have no connection between themselves, but there is a connection through #2 (networks are different). How to copy a very large amount of data from #1 machine to #3 using #2? The data is measured in TB, so leaving it intermediate at #2 is a bad option.
I tried to do it through mc to #2, on the left side of which there is a connection to #1, and on the right side to #3. But after a number of files, mc constantly gives the error "No space left on device (28)", implying #3, but this is of course not true.
What other ways are there?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
S
slang, 2010-11-23
@projector

I would try scp, but I don't think it would be much different than your mc copy.
In any case, you can always do ssh tunneling.

S
sisaenkov, 2010-11-23
@sisaenkov

Try to temporarily set the route so that #1 sees #3 and copy via ftp or scp, as suggested above.

A
AlexWinner, 2010-11-23
@AlexWinner

Through ssh, you can try this, for example:
[email protected]:~$ tar -cv files/ | ssh [email protected] "ssh [email protected] 'tar -xv' "

P
peter23, 2010-11-23
@peter23

ssh I think will not be the fastest option. Maybe tar+netcat over an OpenVPN tunnel? You can raise tunnels in both directions at #2 and make a bridge on them.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question