100-Days-Of-DevOps-Challenge-KodeKloud

Secure SSH Root Access

Disable all app server SSH root access.

Steps

  1. Login into each app server (this way)
  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
    

Good to Know?

SSH Security Best Practices

SSH Configuration Options

Security Benefits