Hi, Before submitting a ticket I would like to be sure that my use case is 
supported.

The context: 
I write a Java agent to which I want to add an ssh server. 
To build my fat jar I exclude bouncycastle & edDSA; and, the non-NIO 
dependencies... So, I only include following dependencies : sshd-common & 
sshd-core. 
I statically load the agent when I start my application. 

As result:
=> With 'netstat -an -p tcp', I can confirm that the server is ready to accept 
connections :)
=> Any connection to the server is however rejected :( ... 'Connection reset by 
127.0.0.1 port 2222'

I have the following output in my log during server initialization
org.apache.sshd.common.util.security.AbstractSecurityProviderRegistrar.getOrCreateProvider(AbstractSecurityProviderRegistrar.java:112)
 - getOrCreateProvider(BC) created instance of 
org.bouncycastle.jce.provider.BouncyCastleProvider
org.apache.sshd.common.util.security.SecurityUtils.register(SecurityUtils.java:449)
 - register(EdDSA) not registered - enabled=true, supported=false
org.apache.sshd.common.io.DefaultIoServiceFactoryFactory.getIoServiceProvider(DefaultIoServiceFactoryFactory.java:68)
 - No detected/configured IoServiceFactoryFactory using 
Nio2ServiceFactoryFactory
org.apache.sshd.server.SshServer.start(SshServer.java:322) - start() - resolve 
bind host=127.0.0.1
org.apache.sshd.common.io.nio2.Nio2Acceptor.bind(Nio2Acceptor.java:71) - 
bind(/127.0.0.1:2222) binding to address
org.apache.sshd.common.io.nio2.Nio2Service.setOption(Nio2Service.java:193) - 
setOption(SO_REUSEADDR)[true] from property=Property[socket-reuseaddr](Boolean]
org.apache.sshd.common.io.nio2.Nio2Acceptor.bind(Nio2Acceptor.java:85) - 
bind(/127.0.0.1:2222) bound to /127.0.0.1:2222

=> If I run step by step, the call of 'SshServer.setUpDefaultServer', I confirm 
that the BC provider is registered despite the absence of the associated jar!


Appreciate your help very much.
Regards,
Philippe

Final note: if I start the server in standalone mode the connections succeed 
without error...

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@mina.apache.org
For additional commands, e-mail: users-h...@mina.apache.org

Reply via email to