I have a script that is to be run by a person that logs in to the server with SSH.
Is there a way to find out automatically what IP address the user is connecting fr
You could use the command:
server:~# pinky
that will give to you somehting like this:
Login Name TTY Idle When Where root root pts/0 2009-06-15 13:41 192.168.1.133