Chet Ramey <[EMAIL PROTECTED]> writes:
> Bash uses the presence of SSH_CLIENT to decide whether or not to run the
> shell startup files for a non-interactive shell (like it attempts to do
> for rsh). [...]
Feh. Here's a nickel, kid, get yourself a real shell.
DES
--
Dag-Erling Smorgrav - [EMA
> > Also the content of SSH_CLIENT may be of intereset (namely the
> remote IP)
> > and I don't know how to retrieve that information after
> SSH_CLIENT has been
> > clobbered.
>
> What do you mean? The variable is still there, it's just not
> exported. If
> you want to export it, do so.
How
> > The tradeoff bash makes is to remove the export attribute from SSH_CLIENT
> > if it exists in the shell's initial environment. Users may always export
> > it explicitly.
>
> This is what I figured from reading the code, however not exporting
> SSH_CLIENT is not enough to really achieve this
Hi,
> Bash uses the presence of SSH_CLIENT to decide whether or not to run the
> shell startup files for a non-interactive shell (like it attempts to do
> for rsh). The problem is that if the variable is exported, subsequent
> invocations of non-interactive shells will source the startup files.
> > However I found that if the login shell of the user is set to bash (version
> > 2.03 or 2.04 at least), this variable is never set. Upon inspection of the
> > code for bash, it appears that bash is explicitely removing the definition
> > of this environment variable. Would anybody have an idea
On Mon, Jan 29, 2001 at 03:09:30PM -0500, Patrick Bihan-Faou wrote:
> Hi,
>
> I am writing some script that looks for the SSH_CLIENT environment variable.
> As specified in the sshd(8) man page, this variable should contain the IP
> address of the client, the port number on the client side and th
Hi,
I am writing some script that looks for the SSH_CLIENT environment variable.
As specified in the sshd(8) man page, this variable should contain the IP
address of the client, the port number on the client side and the port
number on the server side.
However I found that if the login shell of
7 matches
Mail list logo