c.setCommand("scp -f " + path);
c.connect();
OutputStream os = c.getOutputStream();
InputStream is = c.getInputStream();
assertEquals(2, is.read());
c.disconnect();
return null;
}
protected void sendFile(String path, String name, String data) throws Exception {
ChannelExec c = (ChannelExec) session.openChannel("exec");