));
sshd.setChannelFactories(Arrays.<NamedFactory<Channel>>asList(
new ChannelSession.Factory() {
@Override
public Channel create() {
return new ChannelSession() {
@Override
public OpenFuture open(int recipient, int rwsize, int rmpsize, Buffer buffer) {
try {
channelLatch.await();
} catch (InterruptedException e) {