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
Simplest command to get the last 10 users logged in to the machine is last|head. To get all the users, simply use last command
last|head
last