You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 26, 2020. It is now read-only.
Copy file name to clipboardexpand all lines: README.md
+12
Original file line number
Diff line number
Diff line change
@@ -49,6 +49,18 @@ Warning: This role disables root-login on the target server! Please make sure yo
49
49
|`ssh_challengeresponseauthentication`| false | Specifies whether challenge-response authentication is allowed (e.g. via PAM) |
50
50
|`ssh_client_password_login`| false |`true` to allow password-based authentication with the ssh client |
51
51
|`ssh_server_password_login`| false |`true` to allow password-based authentication with the ssh server |
52
+
|`ssh_banner`|`false`|`true` to print a banner on login |
53
+
|`ssh_client_hardening`|`true`|`false` to stop harden the client |
54
+
|`ssh_client_port`|`'22'`| Specifies the port number to connect on the remote host. |
55
+
|`ssh_compression`|`false`| Specifies whether compression is enabled after the user has authenticated successfully. |
56
+
|`ssh_max_auth_retries`|`2`| Specifies the maximum number of authentication attempts permitted per connection. |
57
+
|`ssh_print_debian_banner`|`false`|`true` to print debian specific banner |
58
+
|`ssh_server_enabled`|`true`|`false` to disable the opensshd server |
59
+
|`ssh_server_hardening`|`true`|`false` to stop harden the server |
60
+
|`ssh_server_match_group`| '' | Introduces a conditional block. If all of the criteria on the Match line are satisfied, the keywords on the following lines override those set in the global section of the config file, until either another Match line or the end of the file. |
61
+
|`ssh_server_match_user`| '' | Introduces a conditional block. If all of the criteria on the Match line are satisfied, the keywords on the following lines override those set in the global section of the config file, until either another Match line or the end of the file. |
62
+
|`ssh_server_permit_environment_vars`|`false`|`true` to specify that ~/.ssh/environment and environment= options in ~/.ssh/authorized_keys are processed by sshd |
63
+
|`ssh_use_dns`|`false`| Specifies whether sshd should look up the remote host name, and to check that the resolved host name for the remote IP address maps back to the very same IP address. |
52
64
|`ssh_server_revoked_keys`|[]| a list of revoked public keys that the ssh server will always reject, useful to revoke known weak or compromised keys.|
Copy file name to clipboardexpand all lines: templates/opensshd.conf.j2
+55-19
Original file line number
Diff line number
Diff line change
@@ -7,15 +7,15 @@
7
7
# ===================
8
8
9
9
# Either disable or only allowssh root login via certificates.
10
-
PermitRootLogin {{ 'without-password' if ssh_allow_root_with_key else 'no' }}
10
+
PermitRootLogin {{ 'without-password' if (ssh_allow_root_with_key|bool) else 'no' }}
11
11
12
12
# Define which port sshd should listen to. Default to `22`.
13
13
{%forportinssh_server_ports -%}
14
14
Port {{port}}
15
15
{%endfor%}
16
16
17
17
# Address family should always be limited to the active network configuration.
18
-
AddressFamily {{ 'any' if network_ipv6_enable else 'inet' }}
18
+
AddressFamily {{ 'any' if (network_ipv6_enable|bool) else 'inet' }}
19
19
20
20
# Define which addresses sshd should listen to. Default to `0.0.0.0`, ie make sure you put your desired address in here, since otherwise sshd will listen to everyone.
0 commit comments