Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
KSZK
Ansible
Roles
Base
Commits
7b7e771d
Verified
Commit
7b7e771d
authored
Nov 09, 2021
by
rlacko
💬
Browse files
Fixx sshd config variables
parent
e7120aa2
Changes
1
Hide whitespace changes
Inline
Side-by-side
templates/base-role/etc/ssh/sshd_config.j2
View file @
7b7e771d
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
# !!!
# !!!
Protocol 2
Protocol 2
Port {{ ssh.port }}
Port {{
base_
ssh.port }}
HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_ed25519_key
HostKey /etc/ssh/ssh_host_ed25519_key
...
@@ -13,9 +13,9 @@ KexAlgorithms curve25519-sha256@libssh.org,diffie-hellman-group-exchange-sha256
...
@@ -13,9 +13,9 @@ KexAlgorithms curve25519-sha256@libssh.org,diffie-hellman-group-exchange-sha256
Ciphers chacha20-poly1305@openssh.com,aes256-gcm@openssh.com,aes128-gcm@openssh.com,aes256-ctr,aes192-ctr,aes128-ctr
Ciphers chacha20-poly1305@openssh.com,aes256-gcm@openssh.com,aes128-gcm@openssh.com,aes256-ctr,aes192-ctr,aes128-ctr
MACs hmac-sha2-512-etm@openssh.com,hmac-sha2-256-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-512,hmac-sha2-256,umac-128@openssh.com
MACs hmac-sha2-512-etm@openssh.com,hmac-sha2-256-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-512,hmac-sha2-256,umac-128@openssh.com
PermitRootLogin {{ ssh.permitRootLogin }}
PermitRootLogin {{
base_
ssh.permitRootLogin }}
PubkeyAuthentication {{ ssh.pubkeyAuthentication }}
PubkeyAuthentication {{
base_
ssh.pubkeyAuthentication }}
PasswordAuthentication {{ ssh.passwordAuthentication }}
PasswordAuthentication {{
base_
ssh.passwordAuthentication }}
MaxAuthTries 6
MaxAuthTries 6
...
@@ -31,9 +31,9 @@ AcceptEnv LANG LC_*
...
@@ -31,9 +31,9 @@ AcceptEnv LANG LC_*
Subsystem sftp /usr/lib/openssh/sftp-server
Subsystem sftp /usr/lib/openssh/sftp-server
{% if ssh.allow.users is defined %}
{% if
base_
ssh.allow.users is defined %}
AllowUsers {{ ssh.allow.users }}
AllowUsers {{
base_
ssh.allow.users }}
{% endif %}
{% endif %}
{% if ssh.allow.groups is defined %}
{% if
base_
ssh.allow.groups is defined %}
AllowGroups {{ ssh.allow.groups }}
AllowGroups {{
base_
ssh.allow.groups }}
{% endif %}
{% endif %}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment