juxt / rock

Hardened AMIs for Clojure deployments (Arch Linux)
MIT License
7 stars 5 forks source link

Disable root login over SSH #5

Open jcf opened 6 years ago

jcf commented 6 years ago

This is enabled in the default Arch AMI and hasn't been disabled by us.

Injecting an sshd_config will do the trick.

PermitRootLogin no

Probably also a good idea to double check password auth is disabled, maybe move off the default port of 22, and if this is running on a publicly-accessible box use something like fail2ban?