Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ssh and environment variables

877066Oct 28 2011 — edited Nov 4 2011
Hi,

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.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 2 2011
Added on Oct 28 2011
7 comments
1,960 views