sshd = SshServer.setUpDefaultServer();
sshd.setPort(8000);
sshd.setKeyPairProvider(new FileKeyPairProvider(new String[] { "src/test/resources/hostkey.pem" }));
sshd.setCompressionFactories(Arrays.<NamedFactory<org.apache.sshd.common.Compression>>asList(compression));
sshd.setShellFactory(new EchoShellFactory());
sshd.setPasswordAuthenticator(new BogusPasswordAuthenticator());
sshd.start();
JSch.setConfig("compression.s2c", "zlib@openssh.com,zlib,none");
JSch.setConfig("compression.c2s", "zlib@openssh.com,zlib,none");
JSch.setConfig("zlib", org.apache.sshd.util.Compression.class.getName());
JSch.setConfig("zlib@openssh.com", org.apache.sshd.util.Compression.class.getName());