An open API service indexing awesome lists of open source software.

https://github.com/aminelch/ssh_config

Ansible role to secure SSH by disabling direct root login. It validates the configuration before restarting the SSH service to prevent accidental loss of access
https://github.com/aminelch/ssh_config

ansible ansible-role ssh ssh-config sshd-config

Last synced: about 2 months ago
JSON representation

Ansible role to secure SSH by disabling direct root login. It validates the configuration before restarting the SSH service to prevent accidental loss of access

Awesome Lists containing this project

README

          

Ansible Role: SSHD Configuration (`sshd_config_role`)
=========

## 📌 Description

This Ansible role secures the **SSHD service** by disabling direct root login (`PermitRootLogin no`).
It also **validates the SSH configuration** before restarting the service to prevent accidental loss of access.

---

## 📦 Requirements

- **Target OS**: Debian 11 / 12 (can be adapted for other distributions)
- **Ansible ≥ 2.9** installed on the control machine
- SSH access with sudo privileges