Copy files via an intermediate server?

0 like 0 dislike
5 views
There are three machines, all running freebsd. #1 and #3 ties no, but there is a connection through #2 (different network). How to copy a very large amount of data with the #1 machine on #3 with #2? Data is measured in TB, so leave them on the intermediate #2 — a bad option.


Tried to do it through mc at #2 on the left side where you connect to #1, and the right to #3. But through a quantity of file mc constantly gives error "No space left on device (28)", meaning #3, but it is certainly not true.


What other ways are there?
by | 5 views

4 Answers

0 like 0 dislike
I have tried scp, but I think it is a little different from Your copy using mc.
In any case, you can always make a tunneling over ssh.
by
0 like 0 dislike
To try to register on time, the route to #1 saw #3 and copy via ftp or scp, as suggested above.
by
0 like 0 dislike
Via ssh you can try this for example:
login@host0:~$ tar cv files/ | ssh login@host1 "ssh login@host2 'tar xv' "
by
0 like 0 dislike
I think ssh is not the quickest option. Maybe tar+netcat via OpenVPN tunnel? On #2 to raise the tunnel to both sides and make them bridge.
by

Related questions

0 like 0 dislike
2 answers
asked Mar 28, 2019 by makaroff
0 like 0 dislike
3 answers
0 like 0 dislike
2 answers
0 like 0 dislike
2 answers
0 like 0 dislike
1 answer
110,608 questions
257,186 answers
0 comments
28,804 users