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?
1 answer
Well, using scp to steal it on the Windows machine and pour on the second.
Find more questions by tags Network administrationLinux
you specify what a dump. - Amelia_Larson65 commented on April 19th 20 at 12:15
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
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
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