limit SSH connects on ScSSHServer
Posted: Tue 28 Nov 2017 18:29
With ScSSHServer is there a way to limit the number of SSH client connection it accepts?
For example if I want to limit the my ScSSHServer to only have three connected SSHclients at any time. So if I already have three connected then the fourth would have its connection fail when it trys to connect. (I am open to other solutions. This will be used on an embedded product and I want to limit things. )
I see the ClientInfos property that tells me how many are connected but not how to stop other connections. (did not see any BeforeClientConnect event to cancel things in).
Also is there away to limit the number of SSHChannels ?
I see there is a TScBeforeChannelConnect event but I have no idea how to say NO do not allow the connection.
Thanks
Tom
For example if I want to limit the my ScSSHServer to only have three connected SSHclients at any time. So if I already have three connected then the fourth would have its connection fail when it trys to connect. (I am open to other solutions. This will be used on an embedded product and I want to limit things. )
I see the ClientInfos property that tells me how many are connected but not how to stop other connections. (did not see any BeforeClientConnect event to cancel things in).
Also is there away to limit the number of SSHChannels ?
I see there is a TScBeforeChannelConnect event but I have no idea how to say NO do not allow the connection.
Thanks
Tom