seawall host fix sshd
Set the ssh settings CIS asks for that let in a password, root or rhosts.
Set the ssh settings CIS asks for that let in a password, root or rhosts
In seawall's own drop-in, checked with sshd -t, then sshd reloaded. It undoes itself in five minutes unless --keep runs from a second SSH login, so a setting that locks you out doesn't stay.
Usage
seawall host fix sshd [OPTIONS]
Changes the host
Without --yes it prints the plan and changes nothing.
Options
--yesMake the change (sshd is typed to confirm)
--confirm <NAME>sshd, to make it without a terminal--keepFrom a second SSH login: keep the change rather than let it undo itself
Examples
seawall host fix sshd
seawall host fix sshd --yes
seawall host fix sshd --keep (from a second SSH login)
Notes
Without --yes it prints each setting old → new and changes nothing; sshd is typed to confirm.