I have two identical servers running identical software. One of them is in the same datacenter as the source, with the other being 100ms+ away.
When running a bandwidth-heavy piped ssh transfer on the server that's just a hop away I can easily saturate the connection. When the server is far away I get maybe 10 Mbps (1/100th the speed).
iperf shows the far away server does a good 300 Mbps and can saturate the connection when using multiple parallel connections.
I know there is an unmaintained fork of ssh attempting to optimise for transfer speeds, and I know about tcp tuning. I also know I could use netcat, but I need encryption. I'm already using mbuffer. I also cannot split the source/pipe it in multiple concurrent connections.
Is there anything I can do here? I've battled this problem for years and being unable to fix it across time platforms and hardware is baffling me.
This sounds like a nice problem to solve, but I cannot believe it hasn't already been done.