mirror of
https://github.com/roles-ansible/ansible_role_sshd.git
synced 2024-08-16 11:59:49 +02:00
YAML_ERROR too many blank lines
This commit is contained in:
parent
b0f86737ec
commit
f9a6073833
1 changed files with 0 additions and 6 deletions
|
@ -1,20 +1,17 @@
|
||||||
# Attention, do not make changes
|
# Attention, do not make changes
|
||||||
# {{ ansible_managed }}
|
# {{ ansible_managed }}
|
||||||
|
|
||||||
|
|
||||||
# Networking
|
# Networking
|
||||||
Port {{ ssh_port }}
|
Port {{ ssh_port }}
|
||||||
|
|
||||||
TCPKeepAlive yes
|
TCPKeepAlive yes
|
||||||
|
|
||||||
|
|
||||||
# Key exchange
|
# Key exchange
|
||||||
#KexAlgorithms curve25519-sha256@libssh.org,
|
#KexAlgorithms curve25519-sha256@libssh.org,
|
||||||
# diffie-hellman-group-exchange-sha256
|
# diffie-hellman-group-exchange-sha256
|
||||||
KexAlgorithms curve25519-sha256@libssh.org{%
|
KexAlgorithms curve25519-sha256@libssh.org{%
|
||||||
if use_diffie_hellman_group_exchange_sha256 %},diffie-hellman-group-exchange-sha256{% endif %}
|
if use_diffie_hellman_group_exchange_sha256 %},diffie-hellman-group-exchange-sha256{% endif %}
|
||||||
|
|
||||||
|
|
||||||
# Server authentication
|
# Server authentication
|
||||||
Protocol 2
|
Protocol 2
|
||||||
HostKey /etc/ssh/ssh_host_ed25519_key
|
HostKey /etc/ssh/ssh_host_ed25519_key
|
||||||
|
@ -34,7 +31,6 @@ PubkeyAuthentication yes
|
||||||
# and ChallengeResponseAuthentication to 'no'.
|
# and ChallengeResponseAuthentication to 'no'.
|
||||||
UsePAM yes
|
UsePAM yes
|
||||||
|
|
||||||
|
|
||||||
# User Authentication
|
# User Authentication
|
||||||
{% if restrict_allow_users|default(True) %}
|
{% if restrict_allow_users|default(True) %}
|
||||||
AllowUsers {{ sshd_allow_users|join(' ') }}
|
AllowUsers {{ sshd_allow_users|join(' ') }}
|
||||||
|
@ -50,7 +46,6 @@ StrictModes yes
|
||||||
{% if only_allow_ed25519 == false %}# {%
|
{% if only_allow_ed25519 == false %}# {%
|
||||||
endif %}PubkeyAcceptedKeyTypes ssh-ed25519-cert-v01@openssh.com,ssh-ed25519
|
endif %}PubkeyAcceptedKeyTypes ssh-ed25519-cert-v01@openssh.com,ssh-ed25519
|
||||||
|
|
||||||
|
|
||||||
# Symmetric ciphers
|
# Symmetric ciphers
|
||||||
#Ciphers chacha20-poly1305@openssh.com,
|
#Ciphers chacha20-poly1305@openssh.com,
|
||||||
# aes256-gcm@openssh.com,
|
# aes256-gcm@openssh.com,
|
||||||
|
@ -83,5 +78,4 @@ PrintMotd no
|
||||||
# sftp (required by ansible)
|
# sftp (required by ansible)
|
||||||
Subsystem sftp /usr/lib/openssh/sftp-server
|
Subsystem sftp /usr/lib/openssh/sftp-server
|
||||||
|
|
||||||
|
|
||||||
# ETC
|
# ETC
|
||||||
|
|
Loading…
Reference in a new issue