12 April,16 at 11:13 AM
Applies to: All versions of Centrify-Enabled OpenSSH on SLES 10
Problem:
When a ssh command 'ssh hostname printenv' is ran against a remote server, only a partial list of environment variables gets printed. Once you're logged into the server, executing env will list all the environment variables.
Note: This works on SLES 11 and not on SLES 10
Cause:
It is because on SLES 10, /etc/bash.bashrc is not executed for ssh command executed sessions.
Where as on SLES 11 the same was uncommented so bashrc gets executed:
config-top.h:87:#define SSH_SOURCE_BASHRC
Resolution:ssh hostname export BASH_ENV=/etc/bash.bashrc && printenv