Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

ssh logins

Discussion in 'General Discussion' started by popeye, Jul 1, 2015.

  1. popeye

    popeye Well-Known Member

    Joined:
    May 23, 2013
    Messages:
    344
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Texas
    cPanel Access Level:
    Root Administrator
    Hi is there any way i can see what users are logged via ssh ?

    I just logged and used command top and it says i have 4 users online but should only be me.
     
  2. lldeepakll

    lldeepakll Well-Known Member

    Joined:
    May 20, 2012
    Messages:
    85
    Likes Received:
    3
    Trophy Points:
    58
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hi,

    To check users currently logged in run "w" command

    root@lldeepakll:~# w


    You can check last logged in users using "last" command

    root@lldeepakll:~# last


    Thanks
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,367
    Likes Received:
    1,857
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello :)

    Yes, as mentioned, the "w" command is what you are looking for. You can also review the /var/log/secure log file to see SSH connection activity.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. popeye

    popeye Well-Known Member

    Joined:
    May 23, 2013
    Messages:
    344
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Texas
    cPanel Access Level:
    Root Administrator
    Thanks command w is good shows me users and server load
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice