protected ClientSession createNativeSession() throws Exception {
client = SshClient.setUpDefaultClient();
client.getProperties().put(SshServer.WINDOW_SIZE, "2048");
client.getProperties().put(SshServer.MAX_PACKET_SIZE, "256");
client.setTcpipForwardingFilter(new BogusForwardingFilter());
client.start();
ConnectFuture sessionFuture = client.connect("localhost", sshPort);
sessionFuture.await();
ClientSession session = sessionFuture.getSession();