Mission 92

SSH config review

Verify key SSH hardening settings.

Security administration
7 minutes Admin Lesson 92 of 360
grep
Lesson 92 of 360 0/360 lessons 0/17 missions Security administration · 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.

Check password auth

Run grep PasswordAuthentication /etc/ssh/sshd_config.

grep PasswordAuthentication /etc/ssh/sshd_config
Check root login

Run grep PermitRootLogin /etc/ssh/sshd_config.

grep PermitRootLogin /etc/ssh/sshd_config
Check pubkey

Run grep PubkeyAuthentication /etc/ssh/sshd_config.

grep PubkeyAuthentication /etc/ssh/sshd_config
Lesson support

What to notice while you play.

Objective

Search for password, root, and key authentication settings.

Hint

Use grep against /etc/ssh/sshd_config.

Why it matters

SSH is one of the most important admin entry points.

Common mistakes
  • Checking only root login.
  • Ignoring key authentication policy.
Reference

Commands in this lesson.

grep [-i] <text> <file>

Find literal text inside a file.