ssh port forwarding freezes after 10 simultaneous connections

Posted by Marko Kevac on Server Fault See other posts from Server Fault or by Marko Kevac
Published on 2010-04-21T09:54:30Z Indexed on 2010/04/21 10:03 UTC
Read the original article Hit count: 352

Filed under:
|
|
|

Hello.

I am using port forwarding to utilize proxy server which is on remote machine.

Remote machine hostname is remotemachine. Proxy is listening on 8118 port. I am translating this port to local port 5223.

ssh -vvv -N remotemachine -L 5223:localhost:8118

Everything is fine if I don't use more than 10 simultaneous connections, when ssh just freezes. It no longer send data trough port forwarding.

I.e. ab -c 10 -t 5 -X 'localhost:5223' 'http://www.google.ru/' works, but ab -c 20 -t 5 -X 'localhost:5223' 'http://www.google.ru/' causes ssh to freeze

MaxSessions 30 parameter in /etc/ssh/sshd_config didn't helped at all.

What can I do to remove this 10 connection limit?

Nothing interesting in -vvv output =(

© Server Fault or respective owner

Related posts about ssh

Related posts about ssh-tunnel