How can I Identify who SSH into my Linux System? | Linux Today

How can I Identify who SSH into my Linux System?

Written By
J
Jake
Nov 29, 2020

Identifying who has logged into your system in Linux is way easier than Windows Operating System.

In Linux System whenever someone tries to log in using SSH is recorded by the log file, the log file is located in /var/log/auth.log. location can be different in other distribution.

If you not found auth.log file in your system try to execute the below command to view the log from systemctl.

journalctl -u sshd |tail -100
-u (Show the user journal for the current)
sshd (SSH user created by system by default)
tail -100 (Print top 100 result from log file)

J

Jake

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.