Systems Administrator

Case File: Close the Open Door

An audit found that the server accepts passwords from anywhere and lets root log in over SSH. At a simulated Linux prompt, read the settings that sshd really uses with sshd -T, fix the FIRST PermitRootLogin and PasswordAuthentication lines instead of adding new ones, remove the old Match block that turns passwords back on, lower MaxAuthTries, turn off X11 forwarding, check the file with sshd -t and reload sshd. The checks read the files and the running sshd, so a line added at the end, or a change that was never reloaded, fails.

50 min

Case File: Close the Open Door

An audit found that the server accepts passwords from anywhere and lets root log in over SSH. At a simulated Linux prompt, read the settings that sshd really uses with sshd -T, fix the FIRST PermitRootLogin and PasswordAuthentication lines instead of adding new ones, remove the old Match block that turns passwords back on, lower MaxAuthTries, turn off X11 forwarding, check the file with sshd -t and reload sshd. The checks read the files and the running sshd, so a line added at the end, or a change that was never reloaded, fails.

In this lesson:

  • ssh
  • sshd
  • hardening
  • linux
  • console
  • case-file

๐Ÿ”’ This lesson is part of a paid plan

This lesson is part of the Pro plan. Upgrade to unlock the full lesson, the labs and the exam.

Upgrade Now

This lesson is part of a paid plan

Upgrade to Pro to unlock this course, its labs and its exam.

View Pricing Plans