New answers tagged openssh
This is the best way I have found to do this. You want something on the server side that attempts to read stdin and then kills the process group when that fails, but you also want a stdin on the client side that blocks until the server side process is done and will not leave lingering processes like <(sleep infinity) might. ssh localhost "sleep 99 < ...
Possibly, the issue seems to occur if it happens to have more number of incoming requests. Once the number of unauthenticated connections goes over the sshd:MaxStartUps parameter, sshd starts rejecting those connections. So preferably increase the MaxStartups in sshd_config HTH!
Top 50 recent answers are included