[WBEL-users] ssh environment question

Jesse j@lumiere.net
Tue, 21 Sep 2004 18:47:41 -0700 (PDT)


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>