7

I have remote server with Ubuntu Linux and I want to establish SSH tunnel with this server from Windows machine using PuTTY(plink). I have to use this method for getting access to some service on this server, because firewall is blocking all ports on this server except 22 ssh port. But speed of connection over SSH tunnel is VERY SLOW. I have checked speed using iperf tool.

Here is results of using iperf without SSH tunnel:

[ 5] local <remote_server_ip> port 5001 connected with <my_internet_ip> port 11154 [ ID] Interval Transfer Bandwidth [ 5] 0.0-10.4 sec 5.12 MBytes 4.13 Mbits/sec 

And it is results of using iperf over SSH tunnel:

[ 4] local 127.0.0.1 port 5001 connected with 127.0.0.1 port 38231 [ ID] Interval Transfer Bandwidth [ 4] 0.0-15.2 sec 896 KBytes 484 Kbits/sec 

Speed is really different. How is it possible? What should I do to fix it?

3
  • What's the latency between the two hosts? Commented Aug 8, 2013 at 11:01
  • 1
    Try adding a "-C" to your ssh command line. That enables compression so it may increase your CPU load. Commented Aug 8, 2013 at 14:01
  • I'd look closely at your SSH options. Perhaps you can choose a faster encryption algorithm, for example. Commented Jul 2, 2014 at 22:37

1 Answer 1

5

Probably it's worth a read of this "Why TCP over TCP is a bad idea", it would be better to use a VPN than to rely on SSH for anything more than throw away tunnels.

Admittedly, that's a lot slower than I would have expected, even from an SSH tunnel. Perhaps you need to tune your SSH options.

1
  • 1
    I know about great overhead when we are using TCP over TCP, but even we use this method - connection still userfull. I have some experience with using OpenVPN over TCP and yes with this way connection is slower. But not so SLOW like in my example. So I guess it is something wrong in my sshd setting. But what exact? Commented Aug 8, 2013 at 9:04

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.