[ 
https://issues.apache.org/jira/browse/SSHD-532?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14616563#comment-14616563
 ] 

Goldstein Lyor commented on SSHD-532:
-------------------------------------

1. have you tried version 0.14.0 ?
2. there is a *timing* issue - if you call _setEnv_ *after* the channel has 
been opened then it is too late - the environment variables have already been 
sent and will not be sent again
3. can you send a test code that demonstrates the problem (both client and 
server...) ?
4. you can debug the code by looking at 
_org.apache.sshd.server.shell.ProcessShellFactory.ProcessShell#start(...)_ 
method - assuming this is the factory you are using on the *server* side...

> Environment variables not set
> -----------------------------
>
>                 Key: SSHD-532
>                 URL: https://issues.apache.org/jira/browse/SSHD-532
>             Project: MINA SSHD
>          Issue Type: Bug
>    Affects Versions: 0.13.0
>            Reporter: Matt Kusnierz
>
> Calling 
> org.apache.sshd.client.channel.PtyCapableChannelSession.setEnv(String, 
> String) on a org.apache.sshd.client.channel.ChannelShell doesn't seem to work 
> as (I) expected. I would have thought this should set environment variables 
> in the remote ssh session; but this doesn't seem to happen. Trying to access 
> environment variables from a (java) process run in this ssh session don't see 
> the environment variables as having been set/exported. Either this doesn't 
> work, or I am using it incorrectly, and in which case, it could do with some 
> better javadoc to explain how it should be used.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to