I am having similar issue as reported by this user under review.
I am facing problem with the J2ssh library in my application where it get hangs very often.
ssh = new SshClient(); ssh.setSocketTimeout(10000);
ssh.connect(hostname, port); --->> It gets stuck at this point.
PasswordAuthenticationClient pwd = new PasswordAuthenticationClient();
result = ssh.authenticate(pwd);
I believe the setSocketTimeout is not throwing any exception.
Can anyone please provide me with a solution. Thanks
Log in to post a comment.