← Back to Index | ← Previous: Day 1
Objective
Disable all app server SSH root access.
Steps
- Login into each app server (see Day 1)
- Modify
sshd_configand restart sshdservicesudo sed -i 's/PermitRootLogin yes/PermitRootLogin no/g' /etc/ssh/sshd_config sudo systemctl restart sshd