Mission 59

Nano SSH config copy

Copy SSH config to the lab and inspect it after opening nano.

Nano and editing
9 minutes Core Lesson 59 of 360
cpnanogrep
Lesson 59 of 360 0/360 lessons 0/17 missions Nano and editing · 9 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 9 minutes

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

Copy config

Run cp /etc/ssh/sshd_config lab/sshd_config.

cp /etc/ssh/sshd_config lab/sshd_config
Open copy

Run nano lab/sshd_config.

nano lab/sshd_config
Verify setting

Run grep PasswordAuthentication lab/sshd_config.

grep PasswordAuthentication lab/sshd_config
Lesson support

What to notice while you play.

Objective

Practice safe config-copy editing.

Hint

Copy sshd_config into lab first.

Why it matters

Working on a copy reduces risk when learning.

Common mistakes
  • Editing /etc directly.
  • Skipping verification after editing.
Reference

Commands in this lesson.

nano <file>

Open a simulated nano editor.

grep [-i] <text> <file>

Find literal text inside a file.

cp <src> <dst>

Copy a file.