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 <e_ba...@outlook.com>: > 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 that runs and then debug your code to see why it is not the same as > the built-in. > > ________________________________ > From: waseem.farooqui <waseem.farooqu...@gmail.com> > Sent: Tuesday, March 7, 2017 1:25 PM > To: dev@mina.apache.org > Subject: Re: Apache MINA SSHd default ShellFactory Chocked the resources > > 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. > <http://apache-mina.10907.n7.nabble.com/file/n52377/ > Screenshot_from_2017-03-07_15-59-25.png> > > Everything works fine I was able to enter any command. > <http://apache-mina.10907.n7.nabble.com/file/n52377/ > Screenshot_from_2017-03-07_15-59-25.png> > > But when I login with the terminal 2, I was able to login but wouldn't get > the shell because it was in use by terminal 1. > > <http://apache-mina.10907.n7.nabble.com/file/n52377/ > Screenshot_from_2017-03-07_15-59-50.png> > > Then I exit the terminal 1, so all the commands I entered at terminal 2 got > executed when terminal 1 freed the shell. > > <http://apache-mina.10907.n7.nabble.com/file/n52377/ > Screenshot_from_2017-03-07_16-00-19.png> > > After it I was able to type any command. > > <http://apache-mina.10907.n7.nabble.com/file/n52377/ > Screenshot_from_2017-03-07_16-00-27.png> > > I want both clients to get the shell Simultaneously/parallel ? How could I > achieve this ? Am I doing something wrong ? > > > > > > > > -- > View this message in context: http://apache-mina.10907.n7. > nabble.com/Apache-MINA-SSHd-default-ShellFactory-Chocked- > the-resources-tp52309p52377.html > Apache MINA Developer Forum - Apache MINA SSHd default ShellFactory > Chocked the resources<http://apache-mina.10907.n7.nabble.com/Apache- > MINA-SSHd-default-ShellFactory-Chocked-the-resources-tp52309p52377.html> > apache-mina.10907.n7.nabble.com > Apache MINA SSHd default ShellFactory Chocked the resources. Hi Devs, I am > using Apache MINA server for the ssh server implementation. I basically > want to intercept all the commands typed by the... > > > > Sent from the Apache MINA Developer Forum mailing list archive at > Nabble.com. > > [http://apache-mina.10907.n7.nabble.com/file/n52377/ > Screenshot_from_2017-03-07_15-59-25.png] > > [http://apache-mina.10907.n7.nabble.com/file/n52377/ > Screenshot_from_2017-03-07_15-59-25.png] > > [http://apache-mina.10907.n7.nabble.com/file/n52377/ > Screenshot_from_2017-03-07_15-59-50.png] > > [http://apache-mina.10907.n7.nabble.com/file/n52377/ > Screenshot_from_2017-03-07_16-00-19.png] > > [http://apache-mina.10907.n7.nabble.com/file/n52377/ > Screenshot_from_2017-03-07_16-00-27.png] > -- ------------------------ Guillaume Nodet