[5561] in testers

home help back first fref pref prev next nref lref last post

Athena 9.2.7: sshd? tcsh? sets bogus REMOTEHOST

daemon@ATHENA.MIT.EDU (Ken Raeburn)
Tue Jun 24 15:06:36 2003

To: testers@mit.edu
From: Ken Raeburn <raeburn@MIT.EDU>
Date: Tue, 24 Jun 2003 15:06:34 -0400
Message-ID: <tx17k7bfg79.fsf@mit.edu>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii

If I'm running a command remotely under ssh, and not actually logging
in, REMOTEHOST is set for the command, usually to "0.0.0.0", and
sometimes to rather random values:

 % ssh dcl.mit.edu -o 'ForwardAgent yes' -x printenv 
KRB5CCNAME=/tmp/krb5cc_p15502
USER=raeburn
LOGNAME=raeburn
HOME=/afs/athena.mit.edu/user/r/a/raeburn
PATH=/afs/athena.mit.edu/user/r/a/raeburn/lib/sun4:/afs/athena.mit.edu/user/r/a/raeburn/lib/scripts:/u1/kr/krb5-1.2/Install/bin:/u1/kr/krb5-1.2/Install/sbin:/u1/kr/gnu/bin:/mit/krbdev/arch/sun4x_59/bin:/mit/sipb/arch/sun4x_59/bin:/mit/emacs/bin:/srvd/patch:/usr/athena/bin:/usr/athena/etc:/bin/athena:/usr/openwin/bin:/usr/openwin/demo:/usr/bin:/usr/ccs/bin:/usr/sbin:/sbin:/usr/ucb:/etc:/usr/etc:/etc/athena:/mit/watchmaker/arch/sun4x_59/bin:/mit/gnu/arch/sun4x_59/bin
SHELL=/bin/athena/tcsh
TZ=US/Eastern
SSH_CLIENT=18.18.1.71 53308 22
SSH_CONNECTION=18.18.1.71 53308 18.18.1.70 22
KRBTKFILE=/tmp/tkt_p15502
XAUTHORITY=/tmp/xauth-raeburn-15505/Xauthority
HOSTTYPE=sun4
VENDOR=sun
OSTYPE=solaris
MACHTYPE=sparc
SHLVL=1
PWD=/afs/athena.mit.edu/user/r/a/raeburn
GROUP=mit
HOST=dcl.mit.edu
REMOTEHOST=0.34.82.241
ENV_SET=
EDITOR=emacs
MM_CHARSET=iso-8859-1
MANPATH=/usr/athena/man:/usr/openwin/man:/usr/dt/man:/usr/man
LD_LIBRARY_PATH=/usr/openwin/lib
OPENWINHOME=/usr/openwin
ATHENA_SYS=sun4x_59
ATHENA_SYS_COMPAT=sun4x_58:sun4x_57:sun4x_56:sun4x_55:sun4m_54:sun4m_53:sun4m_412
MAKEOPT=-w
LANG=C
XUSERFILESEARCHPATH=/usr/athena/lib/X11/app-defaults/%N
 [all-in-one.mit.edu] {~}
<38 14:29> % ssh dcl.mit.edu -o 'ForwardAgent yes' -x printenv REMOTEHOST
0.50.178.241
 [all-in-one.mit.edu] {~}
<39 14:30> % ssh dcl.mit.edu -o 'ForwardAgent yes' -x printenv REMOTEHOST
0.0.0.0
 [all-in-one.mit.edu] {~}
<40 14:30> % ssh dcl.mit.edu -o 'ForwardAgent yes' -x printenv REMOTEHOST
0.0.0.0
 [all-in-one.mit.edu] {~}
<41 14:30> % ssh dcl.mit.edu -o 'ForwardAgent yes' -x printenv REMOTEHOST
0.0.0.0

I can't find anything in my dotfiles that touches REMOTEHOST, and I've
seen the "0.0.0.0" very often.  I don't even seem to be able to
reproduce the non-0 result right now.

For interactive logins, it seems to get consistently set to the
correct remote host name.

I assume the intent is to use "0.0.0.0" to indicate "unknown remote
host" as opposed to "local", but there seems to be an occasional
glitch...

Ken

home help back first fref pref prev next nref lref last post