You are an infrastructure engineer automating a quick security hardening step on a freshly-provisioned host.
You are an infrastructure engineer automating a quick security hardening step on a freshly-provisioned host.: a task in endless-terminals-rootless-apptainer: Endless Terminals 1K: rootless Apptainer release (Harbor dataset). INITIAL STATE 1. A directory called /home/user/insecure config/ already…
The task
INITIAL STATE 1. A directory called /home/user/insecure_config/ already exists. 2. Inside it there is a file named sshd_config that currently contains two (insecure) lines: PermitRootLogin yes PasswordAuthentication yes