Applies to: All versions of Centrify-Enabled OpenSSH on SLES 10
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
config-top.h ( from bash source ) indicates bashrc was defined but commented so it never runs bash.bashrc:
It is because on SLES 10, /etc/bash.bashrc is not executed for ssh command executed sessions.
config-top.h:87:/* #define SSH_SOURCE_BASHRC */
Where as on SLES 11 the same was uncommented so bashrc gets executed:
Resolution:In order to print the complete environment variables, you can run the following syntax:
ssh hostname export BASH_ENV=/etc/bash.bashrc && printenv