nanog mailing list archives

Re: get IP address on login


From: Jay Ashworth <jra () baylink com>
Date: Tue, 6 Dec 2011 14:31:58 -0500 (EST)

----- 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


Current thread: