setting environment variables on the remote host

maf at appgate.com maf at appgate.com
Wed Oct 10 08:42:30 MEST 2007


On  2 okt, Ryan Braud wrote:
> When I try to set the environment variables with setEnvironment, it always 
> returns false.  Other than that, the connection is established fine and I 
> end up with my remote shell.  I'm not positive if this is the right way to 
> set environment variables, since I did not find any documentation on this 
> method or about setting environment variables in general.

This is the right way. There are two possible reasons why setEnvironment
may return false. One is if the session is not connected (which it seems
to be in this case). The second is if the server refuses to set the
variables, which is probably what is happening to you.

The next step is to check your ssh server settings. I know that openssh
has a lust of allowed environment variables the client may set.

	/MaF
-- 
Martin Forssen <maf at appgate.com>              Development Manager
Phone: +46 31 7744361                         AppGate Network Security AB


More information about the Mindterm-users mailing list