Each individual file transfer is a transaction and each transaction has overhead associated it. A rough example:
Client tells server: "I want to send a file, the filename is example.txt, size is 100 bytes".
Server tells client: "OK, I am ready to receive".
Client sends 100 bytes of file data to server.
Server acknowledges client it ...
You could use rinetd to acomplish what you want:
apt install rinetd
Then you edit /etc/rinetd.conf, and add your configuration at the end:
SERVER_A_IP SERVER_A_PORT SERVER_B_IP SERVER_B_PORT
# Server A IP: 192.168.0.1
# Server B IP: 22.214.171.124
# Listen on port 8080 on local server and redirect to 22 on remote server
192.168.0.1 8080 1....