HackBlue

Labs / SSH brute force

The setting that the drop-in overrides

sshd_config on edge-02 says passwords are off, yet password logins work. Find the drop-in that wins, the effective value, and the root login setting.

  • Terminal mission
  • Intermediate
  • 3 objectives
  • 0 of 3 solved

What you’re looking at

sshd_config on edge-02 says passwords are off, yet password logins work. Find the drop-in that wins, the effective value, and the root login setting.

Your goal: Find the drop-in file that turned password logins back on, and the settings sshd really uses.

Briefing
the story: what happened and what evidence you were handed.
Terminal
the dark box. It is a pretend Linux shell that runs in your browser. Type a command and press Enter. Nothing you type touches a real system.
Walkthrough
the numbered path. Each step says what to type and what you should see. Hints open one at a time.
Answer boxes
under each question step. Type what you found and press Check.

Words you will meet

SSH
Secure Shell, the encrypted remote login used on Linux servers

Start with step 1 in the walkthrough. Every step says what to do and what you should see. The whole thing takes about 2 min to talk through.

Briefing

An auditor reports that edge-02 accepts SSH passwords. The administrator points at sshd_config, which clearly says PasswordAuthentication no.

sshd uses the first value it reads for most options. The Include line at the top of sshd_config is read before anything below it. sshd -T prints the configuration sshd will actually use.

root@edge-02

edge-02 · SSH brute force

Type help for the command list and objectives for your tasks. Everything runs in this browser.

Up and down arrows walk your history. Ctrl+L clears the screen. Try help, ls, and objectives.

The whole walkthrough

Every step in order, written to be read aloud: 233 words, about 2 min. It gives away every answer, so try the steps first.