https://github.com/stuvusit/openssh
Set up and configure an OpenSSH daemon and client
https://github.com/stuvusit/openssh
ansible ansible-role arch debian openssh ssh ubuntu
Last synced: 2 months ago
JSON representation
Set up and configure an OpenSSH daemon and client
- Host: GitHub
- URL: https://github.com/stuvusit/openssh
- Owner: stuvusIT
- License: cc-by-sa-4.0
- Created: 2017-09-12T15:52:18.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2019-11-26T17:10:58.000Z (over 6 years ago)
- Last Synced: 2025-03-26T17:54:02.625Z (about 1 year ago)
- Topics: ansible, ansible-role, arch, debian, openssh, ssh, ubuntu
- Size: 13.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# openssh
This role sets up and configures an OpenSSH server along with the system-wide SSH client configuration.
A new moduli file consisting only of 4096 and 8192 bit moduli is created asynchronously.
## Requirements
Debian or Ubuntu
## Role Variables
| Name | Default/Required | Description |
|---------------|:----------------:|------------------------------------------------------------------|
| `ssh_config` | `{}` | Dict with all host matches consisting of dicts of ssh options |
| `sshd_config` | See below | Dict with the sshd configuration. See below for more information |
### sshd configuration
| Name | Default/Required | Description |
|----------------|:----------------:|------------------------------------------------------------|
| `config` | `{}` | Dict with all configuration options for the OpenSSH daemon |
| `userMatches` | `{}` | Dict with all user matches for the OpenSSH daemon |
| `groupMatches` | `{}` | Dict with all group matches for the OpenSSH daemon |
| `hostMatches` | `{}` | Dict with all host matches for the OpenSSH daemon |
## Example Playbook
```yml
- hosts: all
roles:
- openssh
ssh_config:
"*":
Protocol: 2
sshd_config:
config:
PermitRootLogin: "no"
userMatches:
alice:
AcceptEnv: "*"
```
## License
This work is licensed under a [Creative Commons Attribution-ShareAlike 4.0 International License](https://creativecommons.org/licenses/by-sa/4.0/).
## Author Information
- [Janne Heß](https://github.com/dasJ)