import java.io.BufferedInputStream;
import java.io.InputStream;
import java.util.Properties;
import org.apache.commons.io.IOUtils;
import com.jcraft.jsch.Channel;
import com.jcraft.jsch.ChannelExec;
import com.jcraft.jsch.ChannelSftp;
import com.jcraft.jsch.JSch;
import com.jcraft.jsch.JSchException;
import com.jcraft.jsch.Session;
public class JSchSession {
private Channel channel= null;
private Session session = null;
private int timeout = 60000;
private ChannelSftp sftpChannel = null;
private final static String dst_path = "/root/neu";
//建立连接
public boolean getConnect() throws JSchException {
//创建JSch对象
JSch jSch = new JSch();
//根据用户名,主机ip和端口获取一个Session对象
session = jSch.getSession("root", "10.