Examples of SshCommandFactory


Examples of com.gitblit.transport.ssh.commands.SshCommandFactory

    sshd.setPublickeyAuthenticator(keyAuthenticator);
    sshd.setPasswordAuthenticator(new UsernamePasswordAuthenticator(gitblit));
    sshd.setSessionFactory(new SshServerSessionFactory());
    sshd.setFileSystemFactory(new DisabledFilesystemFactory());
    sshd.setTcpipForwardingFilter(new NonForwardingFilter());
    sshd.setCommandFactory(new SshCommandFactory(gitblit, idGenerator));
    sshd.setShellFactory(new WelcomeShell(settings));

    // Set the server id.  This can be queried with:
    //   ssh-keyscan -t rsa,dsa -p 29418 localhost
    String version = String.format("%s (%s-%s)", Constants.getGitBlitVersion().replace(' ', '_'),
View Full Code Here

Examples of com.gitblit.transport.ssh.commands.SshCommandFactory

        msg.append(nl);
        msg.append(nl);
      }

      // display the core commands
      SshCommandFactory cmdFactory = (SshCommandFactory) session.getFactoryManager().getCommandFactory();
      DispatchCommand root = cmdFactory.createRootDispatcher(client, "");
      String usage = root.usage().replace("\n", nl);
      msg.append(usage);

      return msg.toString();
    }
View Full Code Here

Examples of com.gitblit.transport.ssh.commands.SshCommandFactory

    sshd.setPublickeyAuthenticator(keyAuthenticator);
    sshd.setPasswordAuthenticator(new UsernamePasswordAuthenticator(gitblit));
    sshd.setSessionFactory(new SshServerSessionFactory());
    sshd.setFileSystemFactory(new DisabledFilesystemFactory());
    sshd.setTcpipForwardingFilter(new NonForwardingFilter());
    sshd.setCommandFactory(new SshCommandFactory(gitblit, workQueue));
    sshd.setShellFactory(new WelcomeShell(settings));

    // Set the server id.  This can be queried with:
    //   ssh-keyscan -t rsa,dsa -p 29418 localhost
    String version = String.format("%s (%s-%s)", Constants.getGitBlitVersion().replace(' ', '_'),
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.