ssh and environment variables
877066Oct 28 2011 — edited Nov 4 2011Hi,
I am using a piece of software that invokes putty's "plink" program to execute remote commands on a solaris 10 box.
Some of the scripts that run on the solaris box are dependent on environment variables, that I set in /etc/profile
But it seems that when the ssh command is invoked, the "environment" does not recognize any of the environment variables in the /etc/profile file.
Is there any way for the default ssh shell to pick up the environment variables?
I have tried changing /etc/default/login to export the environment variables but that has no effect.