Activity of the $HOME/.kshrc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have ssh login to two Linux - Openssh server. They share one $Home
directory. server1 runs Redhat 3 with Openssh 3.6.1 and sever2 runs
Redhat 5 with Openssh 4.3

The problem is: If I type "ssh server1 set" in a local host it shows the
variable defined in $HOME/.kshrc. However, the "ssh server2 set" does
not show the variable defined in the same $HOME/.kshrc file. How can I
make the server2 works the same as server1? Here the user name in local,
svrever1 and server2 are the same.

Settings of both server1 and server2:

# cat /etc/ssh/sshd_config | grep PermitUserEnvironment
PermitUserEnvironment yes


$ cat $HOME/.ssh/environment
ENV=$HOME/.kshrc

$ cat $HOME/.kshrc
LIC_HOST=licserv; export LIC_HOST;


Results of ssh command:

localhost$ ssh server1 echo $LIC_HOST
licserv
localhost$ ssh server2 echo $LIC_HOST


Thanks in advance for any discussions.

Jialing Liang 


[Index of Archives]     [Open SSH Unix Development]     [Fedora Users]     [Fedora Desktop]     [Yosemite Backpacking]     [KDE Users]     [Gnome Users]

  Powered by Linux