sshd.setTcpipForwarderFactory(new DefaultTcpipForwarderFactory());
sshd.setGlobalRequestHandlers(Arrays.<RequestHandler<ConnectionService>>asList(
new KeepAliveHandler(),
new NoMoreSessionsHandler(),
new TcpipForwardHandler(),
new CancelTcpipForwardHandler()
));
return sshd;
}