Revert "Add elif to sshd_config template for EL7"
This reverts commit 3437042944
.
This doesn't work on rhel8 machines:
/etc/crypto-policies/back-ends/opensshserver.config: line 1: Bad configuration option: CRYPTO_POLICY
/etc/crypto-policies/back-ends/opensshserver.config: terminating, 1 bad configuration options
This commit is contained in:
parent
e2a6f6ea5c
commit
dfa13ef9c7
1 changed files with 1 additions and 8 deletions
|
@ -6,17 +6,10 @@ Port {{ sshd_port }}
|
|||
KexAlgorithms diffie-hellman-group-exchange-sha256
|
||||
MACs hmac-sha2-512,hmac-sha2-256
|
||||
Ciphers aes256-ctr,aes192-ctr,aes128-ctr
|
||||
{% elif ansible_distribution_major_version == "7" %}
|
||||
{% else %}
|
||||
KexAlgorithms curve25519-sha256@libssh.org,ecdh-sha2-nistp521,ecdh-sha2-nistp384,ecdh-sha2-nistp256,diffie-hellman-group-exchange-sha256
|
||||
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
|
||||
{% else %}
|
||||
# This system is following system-wide crypto policy. The changes to
|
||||
# crypto properties (Ciphers, MACs, ...) will not have any effect in
|
||||
# this or following included files. To override some configuration option,
|
||||
# write it before this block or include it before this file.
|
||||
# Please, see manual pages for update-crypto-policies(8) and sshd_config(5).
|
||||
Include /etc/crypto-policies/back-ends/opensshserver.config
|
||||
{% endif %}
|
||||
|
||||
{% set ed25519_key=True %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue