This role configures the OpenSSH daemon. It:
UN*X
distributionssshd_config
options. Templates are programmatically generated.meta/make_option_lists
)sshd_config
before reloading sshd.WARNING Misconfiguration of this role can lock you out of your server!
Please test your configuration and its interaction with your users configuration
before using in production!
WARNING Digital Ocean allows root with passwords via SSH on Debian and
Ubuntu. This is not the default assigned by this module - it will set
PermitRootLogin without-password
which will allow access via SSH key but not
via simple password. If you need this functionality, be sure to set
sshd_PermitRootLogin yes
for those hosts.
Tested on:
It will likely work on other flavours and more direct support via suitable
vars/ files is welcome.