Skip to main content

alphaWorks  >  Forums  >  IBM Secure Shell Library for Java  >  developerWorks

ssh session not closed    Point your RSS reader here for a feed of the latest messages in this thread


     

 
 

My developerWorks
 Welcome, Guest
Sign in or register
Permlink Replies: 0 - Pages: 1 Threads: [ Previous | Next ]

Posts: 1
Registered: Dec 20, 2006 01:19:24 AM
ssh session not closed
Posted: Dec 20, 2006 01:23:28 AM
Click to report abuse...   Click to reply to this thread Reply
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


Point your RSS reader here for a feed of the latest messages in all forums