https://github.com/elan-ev/secure_sshd
Secure your sshd configuration.
https://github.com/elan-ev/secure_sshd
ansible ansible-role ssh
Last synced: 2 months ago
JSON representation
Secure your sshd configuration.
- Host: GitHub
- URL: https://github.com/elan-ev/secure_sshd
- Owner: elan-ev
- License: bsd-3-clause
- Created: 2022-01-21T17:31:47.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-01-11T21:42:20.000Z (over 2 years ago)
- Last Synced: 2025-10-19T19:55:49.702Z (9 months ago)
- Topics: ansible, ansible-role, ssh
- Language: Jinja
- Homepage: https://galaxy.ansible.com/elan/secure_sshd
- Size: 10.7 KB
- Stars: 0
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Ansible Role to harden the sshd configuration

This role changes a existing sshd config to accept only secure authentication methods.
## Example Playbook
Just add the role to your playbook:
```yaml
- hosts: all
become: true
roles:
- role: elan.secure_sshd
```
## Development
For development and testing you can use [molecule](https://molecule.readthedocs.io/en/latest/).
With podman as driver you can install it like this – preferably in a virtual environment (if you use docker, substitute `podman` with `docker`):
```bash
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:
```bash
molecule create
molecule converge
molecule destroy
```
If you want to inspect a running test instance use `molecule login --host `, where you replace `` with the desired value.
To test the role run `molecule test`.
## License
[BSD-3-Clause](LICENSE)
## Author Information
[ELAN e.V](https://elan-ev.de/)