← Back to Index | ← Previous: Day 1

Objective

Disable all app server SSH root access.

Steps
  1. Login into each app server (see Day 1)
  2. Modify sshd_config and restart sshd service
    sudo sed -i 's/PermitRootLogin yes/PermitRootLogin no/g' /etc/ssh/sshd_config
    sudo systemctl restart sshd

Next: Day 4 →