Le 8/13/12 12:51 PM, Modeel, Subin a écrit :
Hi.

I am working on a device simulator which needs a SSH support. I am attempting 
at using SSHD which I found to be a very good implementation of sshd in JAVA.
But my adoption of SSHD needs to satisfy a scalability requirement.

In my simulator each of my simulated device which is a java object has a 
channel which will register itself to the singleton selector .As such I can 
have many simulated devices each having a channel
And all of them associated with the single selector.
I wish to have the same  architecture in SSHD.
Selector.open();

.......//multiple channels
Channel.socket().bind(new InetSocketAddress( virtual ip, 161))
channel.register(selector, ops, callback);


I wish to achieve the same in SSHD+MINA. I was looking at the code and I found 
that NioSocketAcceptor.java will create a single channel as part of its open() 
method. I find the by default you cannot bind to many IPs in the SshServer.java
I wish to modify SSHD and maybe even MINA for my project so that I can use the 
single instance of SSHDserver and which can service multiple channels 
associated with different IPs .
Please let me know your inputs or if you have any other way to use existing 
code to achieve my scalability.

AFAICT, you will have to either extend the SshServer to overwrite the start() method (so that you can bind more than one address), or modify the SSHD server code so that it allows a user to configure more than one host/port to be bound on the acceptor.


--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com

Reply via email to