How Can I See Who Is Logged Into My Server?

A1WEBSITEPRO QuestionsCategory: QuestionsHow Can I See Who Is Logged Into My Server?
Maximus Mccullough Staff asked 7 years ago

I need to know the termial commands of who is logged into my server? Can you help?

How Can I See Who Is Logged Into My Server? was last modified: December 11th, 2016 by Maximus Mccullough
1 Answers
Best Answer
Maximus Mccullough Staff answered 7 years ago

To see the last 20 logins use this command.

last -n 20

To see who is currently logged in via SSH use this command.

grep ssh /var/log/secure|grep Accepted

Answer for How Can I See Who Is Logged Into My Server? was last modified: December 11th, 2016 by Maximus Mccullough