[WBEL-users] ssh environment question

Whitebox whitebox@substation9.ath.cx
Tue, 21 Sep 2004 21:57:10 -0400


yes, they are .bash_profile. I assume this is not actually executed 
unless I actually login whereas .bashrc is executed when my shell is 
called. Is this correct?


Jesse wrote:

>On Tue, 21 Sep 2004, Whitebox wrote:
>
>  
>
>>This should be an easy question for somebody. When I ssh into a box that
>>has custom bash environment ( full login ) and do an 'export' I get say
>>50 environment variables. but when I execute from another host ' ssh
>>server export', I only get a small subset of my custom shell environment
>>variables.
>>
>>Does anyone know how to change this? I would like to 'ssh server export'
>>and get all of my environment variables. Is it a flag in ssh that I missed?
>>    
>>
>
>One possible reason is that your custom environment variables are set in
>your .profile or .login (or /etc/profile, /etc/profile.d, or
>/etc/csh.login). Those are only executed when you actually login.
>
>You move those variables to your .bashrc or .cshrc.
>
>---
>Jesse <j@lumiere.net>
>
>
>  
>