MINA SSHD
  1. MINA SSHD
  2. SSHD-68

Support subsystem on the client side

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.4.0
    • Labels:
      None

      Description

      Please add support to connect to a subsystem from client.

        Activity

        Hide
        Nadddy added a comment -

        This is the patch to allow clients to create a channel for subsystem. Please review and include in the trunk.

        Show
        Nadddy added a comment - This is the patch to allow clients to create a channel for subsystem. Please review and include in the trunk.
        Hide
        Guillaume Nodet added a comment -

        Sending trunk/sshd-core/src/main/java/org/apache/sshd/ClientChannel.java
        Sending trunk/sshd-core/src/main/java/org/apache/sshd/ClientSession.java
        Sending trunk/sshd-core/src/main/java/org/apache/sshd/client/channel/ChannelExec.java
        Adding trunk/sshd-core/src/main/java/org/apache/sshd/client/channel/ChannelSubsystem.java
        Sending trunk/sshd-core/src/main/java/org/apache/sshd/client/session/ClientSessionImpl.java
        Transmitting file data .....
        Committed revision 908998.

        Show
        Guillaume Nodet added a comment - Sending trunk/sshd-core/src/main/java/org/apache/sshd/ClientChannel.java Sending trunk/sshd-core/src/main/java/org/apache/sshd/ClientSession.java Sending trunk/sshd-core/src/main/java/org/apache/sshd/client/channel/ChannelExec.java Adding trunk/sshd-core/src/main/java/org/apache/sshd/client/channel/ChannelSubsystem.java Sending trunk/sshd-core/src/main/java/org/apache/sshd/client/session/ClientSessionImpl.java Transmitting file data ..... Committed revision 908998.
        Hide
        Manoj Kumar added a comment -

        In my sshClient code, I have added following code:

        ConnectFuture future = client.connect( host, port );
        future.await();
        ClientSession session = future.getSession();
        session.authPassword( login, password );
        ClientChannel channel = session.createSubsystemChannel( "subsystem" );
        channel.open();

        After executing the client I get following error:

        2012-01-23 22:31:30,541 [NioProcessor-2 ] INFO ChannelSubsystem - Send SSH_MSG_CHANNEL_REQUEST subsystem
        2012-01-23 22:31:30,542 [NioProcessor-2 ] INFO ChannelSubsystem - Received SSH_MSG_CHANNEL_FAILURE on channel 0

        Can you verify if the code change for sftp subsystem is working fine?

        Show
        Manoj Kumar added a comment - In my sshClient code, I have added following code: ConnectFuture future = client.connect( host, port ); future.await(); ClientSession session = future.getSession(); session.authPassword( login, password ); ClientChannel channel = session.createSubsystemChannel( "subsystem" ); channel.open(); After executing the client I get following error: 2012-01-23 22:31:30,541 [NioProcessor-2 ] INFO ChannelSubsystem - Send SSH_MSG_CHANNEL_REQUEST subsystem 2012-01-23 22:31:30,542 [NioProcessor-2 ] INFO ChannelSubsystem - Received SSH_MSG_CHANNEL_FAILURE on channel 0 Can you verify if the code change for sftp subsystem is working fine?

          People

          • Assignee:
            Guillaume Nodet
            Reporter:
            Nadddy
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development