-
Notifications
You must be signed in to change notification settings - Fork 768
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows Open SSH Server cannot support more than 512 concurrent ssh sessions (posix_spawn failing) #2045
Comments
Can you share more details on the application? Can the application be split so there is not the need for so many concurrent sessions? What would be a good upper limit in your mind? |
Hi, unfortunately my application can't be split, it is a springboot java application created with security purposes, it is mandatory for me to can use with a large number of concurrent ssh sessions. At this moment temporarily I can avoid the limit of 512 using a linux server but my final scope is to use windows server 2016. For the question about a good upper limit, it could be possible to set this number in configuration file? for example inside sshd_config file? Thank a lot for your support. |
A workaround could be increasing the MAX_CHILDREN and MAXIMUM_WAIT_OBJECTS_ENHANCED in contrib/win32/win32compat/signal_internal.h, i've already tried increasing this values and build, the process consumes a lot of RAM and works as expected, @maertendMSFT might be a good solution? |
Since jumphosts and jumphost functionality seems to have become my thing..... One connection through jumphosts can easily use four ssh sessions meaning a max of 128 real connections - still a lot but not impossible to reach. The scenario in this case is an admin client that connects through an outgoing jumphost in its security zone (ssh session 1). From there the connection goes to the inbound jumphost in another security zone (ssh session 2). The connection now reaches the target server as a low privilege account - no ssh as admin over network (ssh session 3). Finally ssh administrator@localhost is used to elevate locally since we don't have sudo or runas under ssh (ssh session 4). And yes you can do it as a single command |
Hi, any news about this ticket? Thanks a lot |
Hello, is there any new informations about this ticket? thanks a lot. |
No updates from our side. This item is labeled as an enhancement, so it will be weighed against active issues and other enhancements that may have higher impact for prioritization. There are also suggested workarounds. We are happy to review a PR if you are interested in implementing the change. |
Prerequisites
Steps to reproduce
Hi to all,
I'm developing an application that needs to create a huge number of cuncurrent ssh sessions.
Server Operating System
Windows 11 and Windows server 2016 (I have the same issue on both systems)
Client Operating System
Windows 10 pro
Everything works well when I open 512 concurrent ssh sessions, but when I open the 513th concurrent session or more I receive on client side: connection reset
I see, if can help, that there is an old similar closed bug that had the same problem but with a smaller number of connections (50)
#1096
Expected behavior
Support > 512 connections
Actual behavior
Stops every time at 512 exactly
Error details
Environment data
Version
OpenSSH_for_Windows_9.2p1, LibreSSL 3.6.1
Visuals
No response
The text was updated successfully, but these errors were encountered: