SUMMARY: ksh environment for rsh/ssh access?

From: Peter C. Chapin <pchapin_at_ecet.vtc.edu>
Date: Sat, 14 Dec 2002 07:22:53 -0500 (EST)

I received a reply from Lester Petrie pointing out that OpenSSH, at least,
reads a file $HOME/.ssh/environment to learn what should be in the initial
environment of the shell it creates during a remote login. I put my
definition of PVM_ROOT into that file and all is well.

Peter

Original question:

I'm attempting to make my Tru64 (v5.1A) system part of a PVM virtual
machine. The PVM console on a different computer attempts to start PVM on
my Tru64 system via rsh/ssh (I've configured it to use ssh). PVM requires
an environment variable PVM_ROOT to be set before it will function
properly. My problem is that when I use ssh to invoke a command on the
Tru64 system, PVM_ROOT is not set and I can't figure out how to set it.
Note that I'm using ksh on the Tru64 system.

For example, from a remote system:

        $ ssh mytru64system.vtc.edu set

yields the environment seen during remote command invocation. It is
definitely not the environment set up by my /etc/profile, $HOME/.profile,
or $HOME/.kshrc scripts. This makes sense because, according to the manual
page for ksh, only the login script reads /etc/profile and $HOME/.profile.
It's in $HOME/.profile where I set ENV causing $HOME/.kshrc to be read. So
my question is: just where is ksh getting the "rudimentary" environment
that I see when I issue the command above from a remote host? It seems
like I need to add either ENV or PVM_ROOT to this rudimentary environment.

TIA

Peter
Received on Sat Dec 14 2002 - 12:24:06 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:43 NZDT