mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-05-12 10:56:20 +08:00
Switch sshd config for f22/f23 to explicitly say only v2 protocol, adjust rkhunter for this.
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
#ListenAddress ::
|
||||
|
||||
# The default requires explicit activation of protocol 1
|
||||
#Protocol 2
|
||||
Protocol 2
|
||||
|
||||
# HostKey for protocol version 1
|
||||
#HostKey /etc/ssh/ssh_host_key
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#ListenAddress ::
|
||||
|
||||
# The default requires explicit activation of protocol 1
|
||||
#Protocol 2
|
||||
Protocol 2
|
||||
|
||||
# HostKey for protocol version 1
|
||||
#HostKey /etc/ssh/ssh_host_key
|
||||
|
||||
@@ -165,7 +165,7 @@ ALLOW_SSH_ROOT_USER=without-password
|
||||
# configuration file, then a value of '2' may be set here in order to
|
||||
# suppress a warning message. This option has a default value of '0'.
|
||||
#
|
||||
{% if ansible_distribution == 'Fedora' %}
|
||||
{% if ansible_distribution_major_version|int < 22 %}
|
||||
# Fedora doesn't set protocol in ssh config
|
||||
ALLOW_SSH_PROT_V1=2
|
||||
{% else %}
|
||||
|
||||
Reference in New Issue
Block a user