Search in sources :

Example 1 with DefaultTcpipForwarderFactory

use of org.apache.sshd.common.forward.DefaultTcpipForwarderFactory in project gerrit by GerritCodeReview.

the class SshDaemon method initForwarding.

private void initForwarding() {
    setTcpipForwardingFilter(new ForwardingFilter() {

        @Override
        public boolean canForwardAgent(Session session, String requestType) {
            return false;
        }

        @Override
        public boolean canForwardX11(Session session, String requestType) {
            return false;
        }

        @Override
        public boolean canListen(SshdSocketAddress address, Session session) {
            return false;
        }

        @Override
        public boolean canConnect(Type type, SshdSocketAddress address, Session session) {
            return false;
        }
    });
    setTcpipForwarderFactory(new DefaultTcpipForwarderFactory());
}
Also used : DefaultTcpipForwarderFactory(org.apache.sshd.common.forward.DefaultTcpipForwarderFactory) SshdSocketAddress(org.apache.sshd.common.util.net.SshdSocketAddress) ForwardingFilter(org.apache.sshd.server.forward.ForwardingFilter) MinaSession(org.apache.sshd.common.io.mina.MinaSession) Session(org.apache.sshd.common.session.Session) IoSession(org.apache.sshd.common.io.IoSession)

Aggregations

DefaultTcpipForwarderFactory (org.apache.sshd.common.forward.DefaultTcpipForwarderFactory)1 IoSession (org.apache.sshd.common.io.IoSession)1 MinaSession (org.apache.sshd.common.io.mina.MinaSession)1 Session (org.apache.sshd.common.session.Session)1 SshdSocketAddress (org.apache.sshd.common.util.net.SshdSocketAddress)1 ForwardingFilter (org.apache.sshd.server.forward.ForwardingFilter)1