Package com.gitblit.transport.ssh

Examples of com.gitblit.transport.ssh.SshDaemonClient


      }));
    }

    private void onStart() throws IOException {
      synchronized (this) {
        SshDaemonClient client = session.getAttribute(SshDaemonClient.KEY);
        try {
          cmd = createRootDispatcher(client, cmdLine);
          cmd.setArguments(argv);
          cmd.setInputStream(in);
          cmd.setOutputStream(out);
View Full Code Here


    } else if (req instanceof GitDaemonClient) {
      // git request
      GitDaemonClient client = (GitDaemonClient) req;
      client.setRepositoryName(name);
    } else if (req instanceof SshDaemonClient) {
      SshDaemonClient client = (SshDaemonClient) req;
      client.setRepositoryName(name);
    }
    return repo;
  }
View Full Code Here

      if (user == null) {
        user = UserModel.ANONYMOUS;
      }
    } else if (req instanceof SshDaemonClient) {
      // ssh is always authenticated
      SshDaemonClient client = (SshDaemonClient) req;
      user = client.getUser();
    }

    if (user.canClone(model)) {
      // user can access this git repo
      logger.debug(MessageFormat.format("{0}:// access of {1} by {2} from {3} PERMITTED",
View Full Code Here

      timeout = client.getDaemon().getTimeout();

      transport = Transport.GIT;
    } else if (req instanceof SshDaemonClient) {
      // SSH request is always authenticated
      SshDaemonClient client = (SshDaemonClient) req;
      repositoryName = client.getRepositoryName();
      origin = client.getRemoteAddress().toString();
      user = client.getUser();

      transport = Transport.SSH;
    }

    if (!acceptPush(transport)) {
View Full Code Here

      }));
    }

    private void onStart() throws IOException {
      synchronized (this) {
        SshDaemonClient client = session.getAttribute(SshDaemonClient.KEY);
        try {
          cmd = createRootDispatcher(client, cmdLine);
          cmd.setArguments(argv);
          cmd.setInputStream(in);
          cmd.setOutputStream(out);
View Full Code Here

TOP

Related Classes of com.gitblit.transport.ssh.SshDaemonClient

Copyright © 2018 www.massapicom. 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.