On 2004-05-27, Sven Vermeulen <(E-Mail Removed)> wrote:
> On 27 May 2004 01:50:43 -0700, Dr. Lince M. Lawrence <(E-Mail Removed)> wrote:
>> Now my question is; I have logged in to another system in the network from
>> my machine/node. Once I am logged in to another system, how can I know the
>> name of my system (or my IP address)
>
> The name can be returned with the hostname command. The IP is obtainable using
> ifconfig.
I think he meant the name of his "local" system, where the login
came from.
Lince:
As "w" prints out this information just "sed"ate it.
Maybe better way, esp. if there are more logins from one user:
SSH declares two variables:
SSH_CLIENT="192.168.1.232 2016 22"
SSH_CONNECTION="192.168.1.232 2016 192.168.1.230 22"
This is a login from my local box 192.168.1.232 to my mailserver
192.168.1.230.
--
Marco Dieckhoff
icq# 22243433
GPG Key 0x1A6C95BA --
http://www.frankonia-brunonia.de/keys