secure_sshd

Ansible Role to harden the sshd configuration

molecule

This role changes a existing sshd config to accept only secure authentication methods.

Example Playbook

Just add the role to your playbook:

- hosts: all
  become: true
  roles:
    - role: elan.secure_sshd

Development

For development and testing you can use molecule. With podman as driver you can install it like this – preferably in a virtual environment (if you use docker, substitute podman with docker):

pip install -r .dev_requirements.txt

Then you can create the test instances, apply the ansible config (converge) and destroy the test instances with these commands:

molecule create
molecule converge
molecule destroy

If you want to inspect a running test instance use molecule login --host <instance_name>, where you replace <instance_name> with the desired value.

To test the role run molecule test.

License

BSD-3-Clause

Author Information

ELAN e.V

About

Ensure sshd only accepts secure ciphers.

Install
ansible-galaxy install elan-ev/secure_sshd
GitHub repository
License
bsd-3-clause
Downloads
3674
Owner
elan e.V. is a German non-profit organization helping universities and other higher education organizations with all things related to e-learning