Hi,
I have a problem with sshlite session.
I use this procedure to close my ssh session
public void disconnect() throws Exception {
log.info("start disconnect");
if (out != null){
if (out.checkError()){
throw new IOException(); // no flushing
}
out.close();
}
if (in != null){
in.close();
}
if (err != null){
err.close();
}
if (session != null){
session.connection().
session.close().connection().close();
}
log.info("end disconnect");
}
After call this if I use netstat to see my connection I see the connection already established like
xx.xx.xx.X:ssh ESTABLISHED
until I stop my server process.
Any help?
Thanks a lot