log.warn("Blocking SSHD agent functionality");
throw new IllegalStateException("Blocking SSHD agent functionality");
}
});
sshd.setTcpipForwardNioSocketAcceptorFactory(new ForwardingAcceptorFactory() {
@Override
public NioSocketAcceptor createNioSocketAcceptor(Session session) {
log.warn("Blocking SSHD Tcpip Forward functionality");
throw new IllegalStateException("Blocking SSHD Tcpip Forward access");
}
});
sshd.setX11ForwardNioSocketAcceptorFactory(new ForwardingAcceptorFactory() {
@Override
public NioSocketAcceptor createNioSocketAcceptor(Session session) {
log.warn("Blocking SSHD X11 Forward functionality");
throw new IllegalStateException("Blocking SSHD X11 Forward access");
}