How to smotherout folder linux 2 linux 1 via the tunnel on winodows putty?

Need linux 1 to remove a very large dump, and copy it to linux 2, but these two do not see each other, but there is a windows machine which sees both servers.
On the server with which it is necessary to remove the dump is there and it temporarily somewhere to store.
How to mount a folder from the server 2 to server 1 using putty tunnels?
April 19th 20 at 12:07
1 answer
April 19th 20 at 12:09
Well, using scp to steal it on the Windows machine and pour on the second.
So for this dump at the beginning should be created, and no place - Janelle.Macejkov commented on April 19th 20 at 12:12
@Janelle.Macejkov, Dump can generate to stdout
you specify what a dump. - Amelia_Larson65 commented on April 19th 20 at 12:15
@Amelia_Larson65, It is a postgres dump 5 TB - Janelle.Macejkov commented on April 19th 20 at 12:18
dump of the sql or binary?
advised not so to do, at all. But still theoretically it is possible to raise the tunnel on each server with portforwarding port 5432. We need a server just to run pg_basebackup or pg_dump with localhost with sampling port.

but here and double the load on the network, and encryption, about the stability of such a crutch with a very silent. - Ethelyn_Hyatt90 commented on April 19th 20 at 12:21
@Ethelyn_Hyatt90, So that's how this tunnel to configure? As its windows tunnel to do okay, and then what? - Janelle.Macejkov commented on April 19th 20 at 12:24
in the same way, just the port of the second tunnel to pass on the second server.
something like this(the exact answer in the manual)

1. ssh -R port:address:port remote_server
2. ssh -L port:address:port remote_server

for windows like putty can do that.

Again, strictly do not recommend doing so. - Ethelyn_Hyatt90 commented on April 19th 20 at 12:27
@Ethelyn_Hyatt90, Thank you, it worked!
Have done so:
ssh -L 2200:127.0.0.1:22 user_dest@dest
ssh -R 2200:127.0.0.1:2200 user_source@source

And the source
sshfs user_dest@127.0.0.1:/input_folder/ /out_map_path/ -p 2200

And in /out_map_path/ made dump - Janelle.Macejkov commented on April 19th 20 at 12:30

Find more questions by tags Network administrationLinux