[ 
https://issues.apache.org/jira/browse/SSHD-1273?focusedWorklogId=787296&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-787296
 ]

ASF GitHub Bot logged work on SSHD-1273:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 02/Jul/22 06:14
            Start Date: 02/Jul/22 06:14
    Worklog Time Spent: 10m 
      Work Description: lgoldstein commented on PR #230:
URL: https://github.com/apache/mina-sshd/pull/230#issuecomment-1172843838

   [RFC 4254 - section 
6.4](https://datatracker.ietf.org/doc/html/rfc4254#section-6.4) mentions shell 
and/or command but not subsystem. However, I see no harm in allowing this for 
subsystems as well. IMO it is the **user's** responsibility to make sure that 
the peer handles environment settings correctly. Our code simply updates a 
`StandardEnvironment` instance.




Issue Time Tracking
-------------------

    Worklog Id:     (was: 787296)
    Time Spent: 2h  (was: 1h 50m)

> Send environment variable and open subsystem at the same time for SSH session
> -----------------------------------------------------------------------------
>
>                 Key: SSHD-1273
>                 URL: https://issues.apache.org/jira/browse/SSHD-1273
>             Project: MINA SSHD
>          Issue Type: Improvement
>    Affects Versions: 2.8.0
>            Reporter: Andrei Danilenka
>            Priority: Major
>             Fix For: 2.9.0
>
>          Time Spent: 2h
>  Remaining Estimate: 0h
>
> I use Apache Mina SSH client. The request that I want to send looks like:
> {code:java}
> user@host -w my_password -o SendEnv=SOME_VAR -s subsystem_name{code}
> 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.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to