Hi,

Sorry, I'm not sure this is right platform to posting my question.


My question is some reason in my project, I have shut down and restarted KARAF 
Server.

After restated KARAF server tried to connect KARAF SSH client through code as 
well as external  tool also like putty, I'm getting access denied with admin 
credentials.
We are re tried some time to connect SSH client.

This given blow code for create Sshclient session.

                          try {
            SshClient client = SshClient.setUpDefaultClient();
            client.start();
            ConnectFuture future = client.connect(localhost,"8101");
            future.await();
            session = future.getSession();
            session.authPassword(username, password);
                         }catch (Exception e) {
           //Handling exception
          }

Once done, We are closing resource correct by using session.close(false);
client.stop();

There is waitFor method in ClientSessionImpl.java file, it's return 4 || 
WAIT_AUTH, which given below code.

[cid:image001.png@01D732D5.30976510]

Please can you help anyone what exactly  happened.

Thanks,
Vamshi Krishna




----------------------------------------------------------------------
This transmission (including any attachments) may contain confidential 
information, privileged material (including material protected by the 
solicitor-client or other applicable privileges), or constitute non-public 
information. Any use of this information by anyone other than the intended 
recipient is prohibited. If you have received this transmission in error, 
please immediately reply to the sender and delete this information from your 
system. Use, dissemination, distribution, or reproduction of this transmission 
by unintended recipients is not authorized and may be unlawful.

Reply via email to