[ https://issues.apache.org/jira/browse/SSHD-951?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16960928#comment-16960928 ]
Sivanagarajup commented on SSHD-951: ------------------------------------ Hi [~lgoldstein], As you suggested we created new sshd instance and configured it, now able to stop/start sshd server in single jboss session. But after restarting sshd server not able to connect to it, getting following error {code:java} [root@svc-4-bnsiserv conf]# ssh administrator@localhost -p 8345 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone could be eavesdropping on you right now (man-in-the-middle attack)! It is also possible that the RSA host key has just been changed. The fingerprint for the RSA key sent by the remote host is be:28:b9:6f:3a:9b:ec:8c:8c:4f:90:ff:ce:95:b8:68. Please contact your system administrator. Add correct host key in /root/.ssh/known_hosts to get rid of this message. Offending key in /root/.ssh/known_hosts:1 RSA host key for [localhost]:8345 has changed and you have requested strict checking. Host key verification failed. {code} For previous versions of sshd-core jar we didn't get this type of errors while connecting to it after restarting sshd server. Could you please help us on this. *NOTE :* if we are deleting entry for *[localhost]:8345* in /root/.ssh/known_hosts file it is working fine but from customer perspective this is not recommonded way. Thanks Siva > Query on how to restart sshd server in single jboss session > ----------------------------------------------------------- > > Key: SSHD-951 > URL: https://issues.apache.org/jira/browse/SSHD-951 > Project: MINA SSHD > Issue Type: Question > Affects Versions: 2.2.0 > Reporter: Sivanagarajup > Priority: Major > > Hi Team, > We are facing an issue with version *sshd-core-2.2.0* > In the same session once we stoped ssh server we are not able to start the > ssh server again. > it is throwing exception below > {code:java} > Caused by: java.lang.IllegalStateException: Can not start the server again > Caused by: java.lang.IllegalStateException: Can not start the server again at > org.apache.sshd.server.SshServer.start(SshServer.java:293) > {code} > As per your code in *org.apache.sshd.server.SshServer -> start()* > {code:java} > public void start() throws IOException { > if (isClosed()) { > throw new IllegalStateException("Can not start the server again"); > } > ------ > ------ > }{code} > it is not allowing us to start sshd server again. > Note: Once we restarted our jboss server then we are able to start sshd > server. > But we need to start/stop the ssh server multiple times in single session > Could you please help us on above issue. > > Thanks > Siva -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org For additional commands, e-mail: dev-h...@mina.apache.org