-
Notifications
You must be signed in to change notification settings - Fork 198
refactor authenticationmethod settings, allow user to set authenticationmethods by himself #219
Conversation
templates/opensshd.conf.j2
Outdated
| {% if ssh_pam_device %} | ||
| AuthenticationMethods publickey,keyboard-interactive:pam | ||
| # Set AuthenticationMethods per default to publickey | ||
| AuthenticationMethods {{ sshd_authenticationmethods|default("publickey") }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|default("publickey") is unnecessary here since its set by default in defaults.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
None of this, I'd say. We just do it like this: This way, we have secure defaults but everyone can change these to whatever they need. What do you think?
|
Signed-off-by: szEvEz <szivos.john@gmail.com>
…ionmethods by himself Signed-off-by: szEvEz <szivos.john@gmail.com>
Signed-off-by: szEvEz <szivos.john@gmail.com>
Signed-off-by: szEvEz <szivos.john@gmail.com>
Signed-off-by: szEvEz <szivos.john@gmail.com>
Signed-off-by: Guillaume Bernard <contact@guillaume-bernard.fr> Signed-off-by: szEvEz <szivos.john@gmail.com>
Signed-off-by: szEvEz <szivos.john@gmail.com>
Signed-off-by: szEvEz <szivos.john@gmail.com>
Signed-off-by: szEvEz <szivos.john@gmail.com>
Signed-off-by: szEvEz <szivos.john@gmail.com>
Signed-off-by: Sebastian Gumprich <github@gumpri.ch> Signed-off-by: szEvEz <szivos.john@gmail.com>
Signed-off-by: Sebastian Gumprich <github@gumpri.ch> Signed-off-by: szEvEz <szivos.john@gmail.com>
Signed-off-by: Sebastian Gumprich <github@gumpri.ch> Signed-off-by: szEvEz <szivos.john@gmail.com>
Signed-off-by: Sebastian Gumprich <github@gumpri.ch> Signed-off-by: szEvEz <szivos.john@gmail.com>
fix #224 Signed-off-by: Sebastian Gumprich <sebastian.gumprich@supplyon.com> Signed-off-by: szEvEz <szivos.john@gmail.com>
Signed-off-by: szEvEz <szivos.john@gmail.com>
Signed-off-by: Norman Bestfleisch <norman.bestfleisch@netresearch.de> Signed-off-by: szEvEz <szivos.john@gmail.com>
Signed-off-by: Norman Bestfleisch <norman.bestfleisch@netresearch.de> Signed-off-by: szEvEz <szivos.john@gmail.com>
Signed-off-by: szEvEz <szivos.john@gmail.com>
Signed-off-by: Matthias Lohr <mail@mlohr.com> Signed-off-by: szEvEz <szivos.john@gmail.com>
Signed-off-by: szEvEz <szivos.john@gmail.com>
Signed-off-by: Sebastian Gumprich <github@gumpri.ch> Signed-off-by: szEvEz <szivos.john@gmail.com>
Signed-off-by: Gobind Singh <gobindsingh108@gmail.com> Signed-off-by: szEvEz <szivos.john@gmail.com>
Signed-off-by: szEvEz <szivos.john@gmail.com>
Signed-off-by: szEvEz <szivos.john@gmail.com>
# The first commit's message is: Added ssh_syslog_facility, ssh_log_level and ssh_strict_modes parameters. Signed-off-by: Schonecker, Brian <brian.schonecker@bkfs.com> # The 2nd commit message will be skipped: # Added ssh_syslog_facility, ssh_log_level and ssh_strict_modes parameters. Signed-off-by: szEvEz <szivos.john@gmail.com>
Signed-off-by: szEvEz <szivos.john@gmail.com>
…EvEz/ansible-ssh-hardening into rework-authentication-methods
Currently WIP - but feel free to take a look. - Still need to test with all AuthenticationMethods
Introducing Breaking changes, as parameters are removed.
Referencing #170 and #172
@rndmh3ro
I am just not sure about setting some parameter again, depending on the chosen AuthenticationMethod.
e.g. For AuthenticationMethods: password -> we require that PasswordAuthentication is set to yes. Do we want to define them again or add further conditionals to the existing params?