Skip to content
This repository was archived by the owner on Dec 26, 2020. It is now read-only.
This repository was archived by the owner on Dec 26, 2020. It is now read-only.

RHEL/CentOS 8 requires removal or editing of /etc/crypto-policies/back-ends/openssh*.config #275

@Teknoenie

Description

@Teknoenie

Describe the bug
OpenSSH server configuration is handled by 'update-crypto-policy' which provides

/etc/crypto-policies/back-ends/openssh.config

and

/etc/crypto-policies/back-ends/opensshserver.config.bak

These files must be removed or altered in to function correctly.

Expected behavior
OpenSSH policies for Key Exchanges, MACs and Ciphers as defined by the Ansible module work.

Actual behavior
OpenSSH policies for Key Exchanges, MACs and Ciphers as defined by the Ansible module are ignored.

Example Playbook

- hosts: localhost
  roles:
    - ansible-ssh-hardening

  vars:
    ssh_moduli_minimum: 3071
    ssh_host_key_files: [ '/etc/ssh/ssh_host_ed25519_key' ]
    ssh_cipers: [ '[email protected]',
                  '[email protected]',
                  'aes256-ctr',
                  '[email protected]',
                  'aes128-ctr' ]
    ssh_kex: [ 'curve25519-sha256',
               '[email protected]',
               'diffie-hellman-group16-sha512',
               'diffie-hellman-group18-sha512' ]
    ssh_macs: [ '[email protected]',
               '[email protected]',
               '[email protected]' ]

OS / Environment
CentOS Linux release 8.1.1911 (Core)

Ansible Version

ansible 2.9.7
  config file = None
  configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/local/lib/python3.6/site-packages/ansible
  executable location = /usr/local/bin/ansible
  python version = 3.6.8 (default, Nov 21 2019, 19:31:34) [GCC 8.3.1 20190507 (Red Hat 8.3.1-4)]

Role Version

- src: https://github.com/dev-sec/ansible-ssh-hardening.git

Additional context
None

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions