hardening

Reducing a system's attack surface by removing or locking down anything it does not need, such as unused services and direct root login.

In more detail

Typical steps include removing unused software, closing unused ports, disabling direct root login over SSH and applying secure defaults. Hardening is best applied by automation, so every machine gets it and none drifts back.

Example

Because direct root login is usually disabled, Ansible connects as an ordinary user and escalates with become.

Related terms

Taught in

References