Uploaded image for project: 'MINA SSHD'
  1. MINA SSHD
  2. SSHD-1273

Send environment variable and open subsystem at the same time for SSH session

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.8.0
    • 2.9.0
    • None

    Description

      I use Apache Mina SSH client. The request that I want to send looks like:

      user@host -w my_password -o SendEnv=SOME_VAR -s subsystem_name

      But for now it is impossible to use env vars and subsystem together.

      What I have tried so far
      1. ChannelShell class has setEnv(key, value) method but I can't go in
      subsystem
      2. ChannelSubsystem class allows to go to subsystem but it has no
      setEnv(key, value) method
      3. Also I have tried to open ChannelShell, set env, then open
      ChannelSubsystem using the same session as was used for ChannelShell, but it
      seems env variable hasn't gotten to ChannelSubsystem.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              Danilenka Andrei Danilenka
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h
                  2h