Folks,

    I think I didn't tell enough details ...

"Post, Mark K" wrote
> Check the value of the SSH_CONNECTION environment variable.
>
> Mark Post

Mark, the user only "ssh" to the zLinux in order to start a daemon and
then they logoff. Instead of giving each user a zLinux image we gave
to them an unique IP address ...


Sebastian Korte wrote
> > Finding that, I can map the IP address (or
> > interface) to the user.
>
> To find out the remote user ip? You can directly get the remote ip of
the user
> with "env | grep REMOTE_HOST" in you shell script. It's the shorter
> way.
>
> Sebastian

Sebastian, I already have the remote address (thank you anyway)

I realy need the local address. The xinetd is listening to all
possible local interfaces: "eth0:1" and "eth0:2" and "eth0:3" and so on.

Each interface belongs to one user: user_1(eth0:1), user_2(eth0:2)
and so on.

So my 'local' need is to find out which interface the remote machine is
connected to. I mean, the remote machine had established a connection
to which interface: "eth0:1" or "eth0:2" or "eth0:3" (which local one)??
Is there a clue/tip at the /proc/${PID} or something that can tell me?
Or other location at /proc? Or some environment variable? Do I have
to write a C app to find out the local IP?

Thank you anyway guys.
---------------------------------------------------------
Ulisses de Sousa Penna
Analista Consultor - Banco do Brasil
Fone: +55-61-310-6320   Fax: +55-61-310-6435
---------------------------------------------------------

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to