How to know what user belongs to what ip on debian
is there a way to get an overview of users logged in on my server and the ip they are connecting from ?
I have the IP already, I want the user that is associated with it :)
Solution 1:
w
Solution 2:
Use the who
command. It lists everyone logged in, their terminal and their source hostname/ip address.
Solution 3:
in addition to w and who, last - recent logins with ips lastlog - list of all users with the last ip they were logged in from