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

        Nadddy created issue -
        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.
        Nadddy made changes -
        Field Original Value New Value
        Attachment sshd.patch [ 12428812 ]
        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.
        Guillaume Nodet made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee Guillaume Nodet [ gnt ]
        Fix Version/s 0.4.0 [ 12314444 ]
        Resolution Fixed [ 1 ]
        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?
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        56d 9h 37m 1 Guillaume Nodet 11/Feb/10 14:36

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development