mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 03:57:02 +08:00
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:
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user