ssh port forwarding freezes after 10 simultaneous connections
- by Marko Kevac
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 =(