[147270] in North American Network Operators' Group
Re: get IP address on login
daemon@ATHENA.MIT.EDU (Jay Ashworth)
Tue Dec 6 14:37:20 2011
Date: Tue, 6 Dec 2011 14:31:58 -0500 (EST)
From: Jay Ashworth <jra@baylink.com>
To: NANOG <nanog@nanog.org>
In-Reply-To: <Pine.LNX.4.64ras.1112060850360.26014@nimbus.anzio.com>
Errors-To: nanog-bounces+nanog.discuss=bloom-picayune.mit.edu@nanog.org
----- Original Message -----
> From: "Bob Rasmussen" <ras@anzio.com>
> > >On my OSR5 test system, I see SSH_CLIENT and SSH_CONNECTION set in
> > >the environment upon login. Does that help?
> These are set by the SSH daemon, only if you're running an SSH
> connection. If you're not, you should be :-)
Well, on a disconnected internal system, telnet's probably ok; there's a
way to get it in telnet as well, but you have to do some guessing.
Cheers,
-- jra
--
Jay R. Ashworth Baylink jra@baylink.com
Designer The Things I Think RFC 2100
Ashworth & Associates http://baylink.pitas.com 2000 Land Rover DII
St Petersburg FL USA http://photo.imageinc.us +1 727 647 1274