Re: Get IP from ttyname(3)

2007-01-02 Thread Thinker
Sharad Chandra wrote: > Hi all, I was reading man page of ttyname(3). I thought if i have > ttyname then using that can i have IP address of connected host?. > like in sshd logs on log file like. You can read login informations from utmp(8). /var/run/utmp is a array of utmp(8). please check man pag

Get IP from ttyname(3)

2007-01-02 Thread Sharad Chandra
Hi all, I was reading man page of ttyname(3). I thought if i have ttyname then using that can i have IP address of connected host?. like in sshd logs on log file like. ... sshd[]: Accepted keyboard-interactive/pam for from port ssh2 This IP here is connected hosts ip.. is there any api