JSch.setConfig("cipher.c2s", "aes128-cbc,3des-cbc,blowfish-cbc,aes192-cbc,aes256-cbc,none");
JSch.setConfig("mac.s2c", "hmac-md5,hmac-sha1,hmac-sha2-256,hmac-sha1-96,hmac-md5-96,hmac-sha2-512");
JSch.setConfig("mac.c2s", "hmac-md5,hmac-sha1,hmac-sha2-256,hmac-sha1-96,hmac-md5-96,hmac-sha2-512");
JSch.setConfig("hmac-sha2-512", "com.jcraft.jsch.jce.HMACSHA512");
com.jcraft.jsch.Session s = sch.getSession("smx", "localhost", port);
s.setUserInfo(new SimpleUserInfo("smx"));
s.connect();
com.jcraft.jsch.Channel c = s.openChannel("shell");
c.connect();
OutputStream os = c.getOutputStream();
InputStream is = c.getInputStream();