Re: Apache MINA SSHd default ShellFactory Chocked the resources

2017-03-07 Thread waseem.farooqui
I am running this code. And change this public boolean authenticate(String username, String password, ServerSession session) { return (GenericUtils.length(username) > 0) && username.equals(password); } by this public boolean authenticate(Str

Re: Apache MINA SSHd default ShellFactory Chocked the resources

2017-03-07 Thread Guillaume Nodet
I agree, the informations given are not sufficient. I ran the server code and connected with 2 different clients without any problems. 2017-03-07 18:04 GMT+01:00 elijah baley : > You are doing something wrong (just what - is difficult to say) - if you > run the code in SshServer#main you can con

Re: MIA for a while...

2017-03-07 Thread Bernd Fondermann
Emmanual, Toutes mes félicitations! All the best for your baby, your wife and yourself! Enjoy, Bernd On Thu, Mar 2, 2017 at 3:15 PM, Emmanuel Lécharny wrote: > Hi ! > > > just for you to know, I may be MIA for a while, or at least way less > responsive : My wife just gave birth to our wo

Re: Apache MINA SSHd default ShellFactory Chocked the resources

2017-03-07 Thread elijah baley
You are doing something wrong (just what - is difficult to say) - if you run the code in SshServer#main you can connect several clients - I did it - connected both PUTTY and Ubuntu SSH client to a server running SshServer#main. All that remains is now for you to compare your code with the one th

Re: Apache MINA SSHd default ShellFactory Chocked the resources

2017-03-07 Thread elijah baley
Basically the main method of SshServer does all this. It can be run as a standalone server and see that multiple clients can connect to it concurrently From: Guillaume Nodet Sent: Tuesday, March 7, 2017 10:59 AM To: dev@mina.apache.org Subject: Re: Apache MINA S

Re: Apache MINA SSHd default ShellFactory Chocked the resources

2017-03-07 Thread waseem.farooqui
I run the SshServer code in the link u shared but got the same result. Its because ProcessShellFactory spawns a single thread which is apparently shared among all the clients. Look what I did, I open 2 terminals and connect with the server from terminal 1.

Re: Apache MINA SSHd default ShellFactory Chocked the resources

2017-03-07 Thread Guillaume Nodet
The ProcessShellFactory already spawns a thread. Here is the SshServer code which works with multiple clients: https://github.com/apache/mina-sshd/blob/master/sshd-core/src/main/java/org/apache/sshd/server/SshServer.java#L465-L591 2017-03-06 9:54 GMT+01:00 waseem.farooqui : > You're right about