SSH, short for Secure Shell, lets you sign in to another computer over a network. The receiving machine can log each attempt. Those records tell you which account was presented and whether the server accepted the proof offered to sign in.
Security Logs · Lesson 2
SSH Login Events
Learn how SSH records describe rejected and accepted sign-ins and how to group attempts from one connection.
Reading the Outcome
Here are two simulated SSH records. The login field gives the outcome. A rejected attempt failed the sign-in check. An accepted attempt passed it.
t=09:13:48Z source=ssh host=web-01 account=alex login=rejected
t=09:14:02Z source=ssh host=web-01 account=alex login=accepted
The first record describes a rejection for alex. The second describes an accepted attempt for the same account. Each outcome applies to its own attempt.
Which statement follows from these two records?
Reading Addresses and Methods
A remote address tells you where the receiving machine saw the connection come from. In this sample, it appears as peer. A network address can be shared, so the field alone gives no name for the person using it.
t=09:14:02Z source=ssh host=web-01 account=alex login=accepted
peer=192.0.2.10 method=publickey connection=17
The second line continues the same record. The method field describes the kind of proof SSH checked. password means SSH checked a password. publickey means the connecting device proved it could use a key the server accepts for that account.
Which finding is supported for the accepted attempt?
Grouping Attempts by Connection
A connection is the network link SSH uses to exchange messages. In these samples the host assigns an identifier to each connection. Multiple sign-in attempts can occur over one connection, and a new connection can come from the same address.
t=09:13:48Z host=web-01 account=alex peer=192.0.2.10 connection=17 login=rejected
t=09:13:55Z host=web-01 account=alex peer=192.0.2.10 connection=18 login=rejected
t=09:14:02Z host=web-01 account=alex peer=192.0.2.10 connection=17 login=accepted
On web-01, the first and last records share connection 17. Read that identifier together with the host.

This terminal view puts the three simulated attempts together so you can compare their connection numbers.
Which records refer to connection 18 on web-01?
Following an Accepted Sign-In
A successful sign-in tells you that SSH accepted the account's proof. To learn what happened after that, look for a record that a session opened. A login session tracks activity after the sign-in. A successful sign-in record alone describes the sign-in check.
Which record would help you check whether an accepted sign-in led to an open session?
Lesson complete
You finished SSH Login Events
You can now read the outcome of an SSH attempt and decide which records belong together.
Distinguish accepted and rejected sign-ins.
Use the remote address and method fields to describe the attempt.
Group records by host and connection when identifiers are available.
Look for a session record to check what followed a successful sign-in.
Keep your learning progress
Create a free account to save this lesson and continue learning on any device.
Create a free account