SSH_CLIENT _not_ set when doing a command
Sendy
sgr at rotzorg.org
Thu Sep 28 18:08:03 EST 2000
Hi,
a friend of mine did some debugging and found that the envvar _is_ set when using a /bin/csh as loginshell, but _not_ set using /bin/bash.
Look at this:
sgr at PCB25:~$ cat /etc/passwd | egrep "sgr|patrick"
sgr:x:1000:1000:Sander,,,:/home/sgr:/bin/bash
patrick:x:1001:1001:Patrick,,,:/home/patrick:/bin/csh
sgr at PCB25:~$ ssh -l sgr localhost 'env|grep SSH'
sgr at localhost's password:
SSH_AUTH_SOCK=/tmp/ssh-zSIp1721/agent.1721
sgr at PCB25:~$ ssh -l patrick localhost 'env|grep SSH'
patrick at localhost's password:
SSH_CLIENT=127.0.0.1 1583 22
SSH_AUTH_SOCK=/tmp/ssh-spvt1729/agent.1729
sgr at PCB25:~$
So, maybe its a problem with my bash?
Thanks your helping,
Sendy
sendy at dds.nl
More information about the openssh-unix-dev
mailing list