How to check who/when logged in via SSH

Issue :

How to check successful and failed SSH logins to the server ?

Solution :

Use the following commands (as root) to achieve this :

last | less

This captures data from /var/log/wtmp and shows you the successful logins.

lastb | less

This captures data from /var/log/btmp and shows you the failed attempts.

Source : WHT

Filed Under: Quick fixesTechnical

Tags:

About the Author: InstaCarma is a provider of Enterprise Class Solutions for the Hosting Industry

RSSComments (0)

Trackback URL

Leave a Reply

Get Adobe Flash playerPlugin by wpburn.com wordpress themes
InstaCarma provides outsourced web hosting technical support, helpdesk management, datacenter automation, cloud service management. Sales - 1800 810 6547 - visit www.instacarma.com