SSH tunneling hangs with many connections

sshssh-tunnel

I am forced to use SSH tunneling to access many servers (over 100) via one gateway server. To keep connection alive I am using autossh. Everything works pretty well until there is high traffic (people are connecting to most of the servers at once). then ssh process reaches 12% of cpu (which is configured maximum for separate process) and no connection is working anymore – i have to restart autossh script. What could be the possible reason for that?

Best Answer

The reason is that you have maxed out the amount of CPU you are being allowed to use. SSH requires CPU-intensive cryptographic operations. Basically, you are trying to put ten pounds of flour in a five pound bag.