/** * Closes the Shell channel are associated IO Streams * * @param sshContact ID of SSH Contact */ public void closeShellChannel(ContactSSH sshContact) throws JSchException, IOException { sshContact.closeShellIO(); sshContact.getShellChannel().disconnect(); sshContact.setShellChannel(null); }