[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bash does not read startup scripts on some machines
From: |
Greg Wooledge |
Subject: |
Re: bash does not read startup scripts on some machines |
Date: |
Fri, 24 Apr 2009 08:16:26 -0400 |
User-agent: |
Mutt/1.4.2.2i |
On Thu, Apr 23, 2009 at 02:14:24PM -0600, Justin wrote:
> I am using a command line ssh tool called qtssh on windows to connect to
> a redhat server. qtssh is a command line ssh tool [...]
> 'When bash is started non-interactively, to run a shell
> script, for example, it looks for the variable BASH_ENV in the
> environment, expands its value if it appears there, and uses the
> expanded value as the name of a file to read and execute.' This
> variable is not set on any of the machines i'm on and it is not clear
> how to appropriately set this variable.
You'd probably want to put it in ~/.ssh/environment on the server
end, and make sure sshd_config on the server includes
"PermitUserEnvironment yes".