Mission 342

Known-hosts hygiene

Inspect stored host identities alongside a key fingerprint.

Security administration
8 minutes Admin Lesson 342 of 360
catssh-keygenstat
Lesson 342 of 360 0/360 lessons 0/17 missions Security administration · 8 minutes
0%
Continue View profile
Ops lab terminal Training lab
New learnerrank 0XP 0%complete
learner@clairos:/home/learner $ Unix ops lab: type a command, press Enter
Instructions 8 minutes

Click any instruction for the command details, the why, and the common mistake to avoid.

Read known hosts

Run cat ~/.ssh/known_hosts.

cat ~/.ssh/known_hosts
Read a key fingerprint

Run ssh-keygen -lf ~/.ssh/authorized_keys.

ssh-keygen -lf ~/.ssh/authorized_keys
Inspect known-hosts metadata

Run stat ~/.ssh/known_hosts.

stat ~/.ssh/known_hosts
Lesson support

What to notice while you play.

Objective

Build repeatable confidence with checking SSH host and key identity evidence.

Hint

Start with cat ~/.ssh/known_hosts, inspect the result, then continue in order.

Why it matters

Checking SSH host and key identity evidence helps operators explain what they know before they change anything.

Common mistakes
  • Skipping the output that proves checking SSH host and key identity evidence.
  • Changing several things before recording a baseline.
Reference

Commands in this lesson.

cat <file>

Print text file contents.

stat <path>

Show lab file details.