7

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 :)

Lucas Kauffman
  • 16,880
  • 9
  • 58
  • 93

4 Answers4

34

w

jscott
  • 24,484
  • 8
  • 79
  • 100
11

Use the who command. It lists everyone logged in, their terminal and their source hostname/ip address.

EightBitTony
  • 9,311
  • 1
  • 34
  • 46
2

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

wolfric
  • 96
  • 2
2

In addition to w1 and who2, you may also look at finger3.

warren
  • 18,369
  • 23
  • 84
  • 135