如何将此代码写入 Thread 或 AsyncTask ?
JSch jsch = new JSch();
Session session = null;
session = jsch.getSession("******", "*********",22);
session.setConfig("StrictHostKeyChecking", "no");
session.setPassword("******");
session.connect();
Channel channel = session.openChannel("sftp");
channel.connect();
ChannelSftp sftpChannel = (ChannelSftp) channel;
sftpChannel.exit();
session.disconnect();