In article <200103170757.f2H7vZU30431@hitchhiker.org.lu>,
Alain.Knaff@hitchhiker.org.lu (Alain Knaff) writes:
> Description:
> Bash clears SSH_CLIENT environment variable on startup
It doesn't clear that variable, but it does unexport it if it thinks it was
called by sshd with a non-interactive command to run. When it does so, it
also reads your .bashrc file. So a simple workaround is to add
export SSH_CLIENT
to your .bashrc file.
I have no comment on whether this unexporting behaviour is actually
desirable.
--
Aaron Crane