Mission 45

SSH file layout

Inspect common SSH files without making any network connection.

Files and paths
7 minutes Core Lesson 45 of 360
lscatstat
Lesson 45 of 360 0/360 lessons 0/17 missions Files and paths · 7 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 7 minutes

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

List SSH folder

Run ls -la ~/.ssh.

ls -la ~/.ssh
Read SSH config

Run cat ~/.ssh/config.

cat ~/.ssh/config
Inspect authorized keys

Run stat ~/.ssh/authorized_keys.

stat ~/.ssh/authorized_keys
Lesson support

What to notice while you play.

Objective

Recognize local SSH config and authorized keys.

Hint

Use ls -la ~/.ssh, then inspect the files.

Why it matters

SSH file layout matters for secure admin access.

Common mistakes
  • Connecting to test a file you could inspect safely.
  • Ignoring key file permissions.
Reference

Commands in this lesson.

ls [-la] [path]

List lab files and folders.

cat <file>

Print text file contents.

stat <path>

Show lab file details.

lsof

Show simulated files and sockets opened by services.