xoxys.sshd/README.md

300 lines
4.6 KiB
Markdown
Raw Normal View History

2019-11-02 18:10:39 +00:00
# xoxys.sshd
2019-11-02 19:13:10 +00:00
[![Build Status](https://drone.rknet.org/api/badges/ansible/xoxys.sshd/status.svg)](https://drone.rknet.org/ansible/xoxys.sshd)
2019-11-02 18:10:39 +00:00
2019-11-02 19:13:10 +00:00
2019-11-06 20:09:50 +00:00
Configure sshd server
2019-11-02 19:13:10 +00:00
## Table of content
* [Default Variables](#default-variables)
* [sshd_allow_agent_forwarding](#sshd_allow_agent_forwarding)
2019-11-22 23:15:00 +00:00
* [sshd_allow_groups](#sshd_allow_groups)
2019-11-02 19:13:10 +00:00
* [sshd_allow_tcp_forwarding](#sshd_allow_tcp_forwarding)
2019-11-22 23:15:00 +00:00
* [sshd_challenge_response_authentication](#sshd_challenge_response_authentication)
* [sshd_ciphers](#sshd_ciphers)
* [sshd_client_alive_count_max](#sshd_client_alive_count_max)
* [sshd_client_alive_interval](#sshd_client_alive_interval)
2019-11-02 19:13:10 +00:00
* [sshd_compression](#sshd_compression)
2019-11-22 23:15:00 +00:00
* [sshd_google_auth_enabled](#sshd_google_auth_enabled)
* [sshd_google_auth_exclude_group](#sshd_google_auth_exclude_group)
* [sshd_gssapi_authentication](#sshd_gssapi_authentication)
* [sshd_hostbased_authentication](#sshd_hostbased_authentication)
* [sshd_ignore_rhosts](#sshd_ignore_rhosts)
* [sshd_kex](#sshd_kex)
2019-11-02 19:13:10 +00:00
* [sshd_log_level](#sshd_log_level)
2019-11-22 23:15:00 +00:00
* [sshd_macs](#sshd_macs)
2019-11-02 19:13:10 +00:00
* [sshd_max_auth_tries](#sshd_max_auth_tries)
* [sshd_max_sessions](#sshd_max_sessions)
2019-11-22 23:15:00 +00:00
* [sshd_moduli_minimum](#sshd_moduli_minimum)
* [sshd_password_authentication](#sshd_password_authentication)
* [sshd_permit_empty_passwords](#sshd_permit_empty_passwords)
* [sshd_permit_root_login](#sshd_permit_root_login)
* [sshd_protocol](#sshd_protocol)
* [sshd_strict_modes](#sshd_strict_modes)
2019-11-02 19:13:10 +00:00
* [sshd_tcp_keep_alive](#sshd_tcp_keep_alive)
* [sshd_use_dns](#sshd_use_dns)
2019-11-22 23:15:00 +00:00
* [sshd_x11_forwarding](#sshd_x11_forwarding)
2019-11-02 19:13:10 +00:00
* [Dependencies](#dependencies)
* [License](#license)
* [Author](#author)
---
## Default Variables
2019-11-22 23:15:00 +00:00
### sshd_allow_agent_forwarding
2019-11-02 19:13:10 +00:00
#### Default value
```YAML
2019-11-22 23:15:00 +00:00
sshd_allow_agent_forwarding: no
2019-11-02 19:13:10 +00:00
```
2019-11-22 23:15:00 +00:00
### sshd_allow_groups
2019-11-02 19:13:10 +00:00
#### Default value
```YAML
2019-11-22 23:15:00 +00:00
sshd_allow_groups: []
2019-11-02 19:13:10 +00:00
```
2019-11-22 23:15:00 +00:00
### sshd_allow_tcp_forwarding
2019-11-02 19:13:10 +00:00
#### Default value
```YAML
2019-11-22 23:15:00 +00:00
sshd_allow_tcp_forwarding: yes
2019-11-02 19:13:10 +00:00
```
2019-11-22 23:15:00 +00:00
### sshd_challenge_response_authentication
If you disable password auth you should disable ChallengeResponseAuth also.
2019-11-02 19:13:10 +00:00
#### Default value
```YAML
2019-11-22 23:15:00 +00:00
sshd_challenge_response_authentication: no
2019-11-02 19:13:10 +00:00
```
2019-11-22 23:15:00 +00:00
### sshd_ciphers
2019-11-02 19:13:10 +00:00
#### Default value
```YAML
2019-11-22 23:15:00 +00:00
sshd_ciphers:
- chacha20-poly1305@openssh.com
- aes256-gcm@openssh.com
- aes128-gcm@openssh.com
- aes256-ctr
- aes192-ctr
- aes128-ctr
2019-11-02 19:13:10 +00:00
```
2019-11-22 23:15:00 +00:00
### sshd_client_alive_count_max
2019-11-02 19:13:10 +00:00
#### Default value
```YAML
2019-11-22 23:15:00 +00:00
sshd_client_alive_count_max: 0
2019-11-02 19:13:10 +00:00
```
2019-11-22 23:15:00 +00:00
### sshd_client_alive_interval
2019-11-02 19:13:10 +00:00
#### Default value
```YAML
2019-11-22 23:15:00 +00:00
sshd_client_alive_interval: 900
2019-11-02 19:13:10 +00:00
```
2019-11-22 23:15:00 +00:00
### sshd_compression
2019-11-02 19:13:10 +00:00
#### Default value
```YAML
2019-11-22 23:15:00 +00:00
sshd_compression: delayed
2019-11-02 19:13:10 +00:00
```
2019-11-22 23:15:00 +00:00
### sshd_google_auth_enabled
Google Authenticator required ChallengeResponseAuth!
2019-11-02 19:13:10 +00:00
#### Default value
```YAML
2019-11-22 23:15:00 +00:00
sshd_google_auth_enabled: false
2019-11-02 19:13:10 +00:00
```
2019-11-22 23:15:00 +00:00
### sshd_google_auth_exclude_group
Exclude a group from 2FA auth
2019-11-02 19:13:10 +00:00
#### Default value
```YAML
2019-11-22 23:15:00 +00:00
sshd_google_auth_exclude_group: _unset_
2019-11-02 19:13:10 +00:00
```
2019-11-22 23:15:00 +00:00
#### Example usage
```YAML
sshd_google_auth_exclude_group: my_group
```
### sshd_gssapi_authentication
2019-11-02 19:13:10 +00:00
#### Default value
```YAML
2019-11-22 23:15:00 +00:00
sshd_gssapi_authentication: yes
2019-11-02 19:13:10 +00:00
```
2019-11-22 23:15:00 +00:00
### sshd_hostbased_authentication
2019-11-02 19:13:10 +00:00
#### Default value
```YAML
2019-11-22 23:15:00 +00:00
sshd_hostbased_authentication: no
```
### sshd_ignore_rhosts
#### Default value
```YAML
sshd_ignore_rhosts: yes
2019-11-02 19:13:10 +00:00
```
### sshd_kex
#### Default value
```YAML
sshd_kex:
- curve25519-sha256@libssh.org
- diffie-hellman-group-exchange-sha256
```
2019-11-22 23:15:00 +00:00
### sshd_log_level
2019-11-02 19:13:10 +00:00
#### Default value
```YAML
2019-11-22 23:15:00 +00:00
sshd_log_level: INFO
2019-11-02 19:13:10 +00:00
```
### sshd_macs
#### Default value
```YAML
sshd_macs:
- hmac-sha2-512-etm@openssh.com
- hmac-sha2-256-etm@openssh.com
- hmac-ripemd160-etm@openssh.com
- umac-128-etm@openssh.com
- hmac-sha2-512
- hmac-sha2-256
- hmac-ripemd160
```
2019-11-22 23:15:00 +00:00
### sshd_max_auth_tries
2019-11-02 19:13:10 +00:00
#### Default value
```YAML
2019-11-22 23:15:00 +00:00
sshd_max_auth_tries: 6
2019-11-02 19:13:10 +00:00
```
2019-11-22 23:15:00 +00:00
### sshd_max_sessions
2019-11-02 19:13:10 +00:00
#### Default value
```YAML
2019-11-22 23:15:00 +00:00
sshd_max_sessions: 10
2019-11-02 19:13:10 +00:00
```
2019-11-22 23:15:00 +00:00
### sshd_moduli_minimum
2019-11-02 19:13:10 +00:00
#### Default value
```YAML
2019-11-22 23:15:00 +00:00
sshd_moduli_minimum: 2048
2019-11-02 19:13:10 +00:00
```
2019-11-22 23:15:00 +00:00
### sshd_password_authentication
2019-11-02 19:13:10 +00:00
#### Default value
```YAML
2019-11-22 23:15:00 +00:00
sshd_password_authentication: no
2019-11-02 19:13:10 +00:00
```
2019-11-22 23:15:00 +00:00
### sshd_permit_empty_passwords
2019-11-02 19:13:10 +00:00
#### Default value
```YAML
2019-11-22 23:15:00 +00:00
sshd_permit_empty_passwords: no
2019-11-02 19:13:10 +00:00
```
2019-11-22 23:15:00 +00:00
### sshd_permit_root_login
2019-11-02 19:13:10 +00:00
#### Default value
```YAML
2019-11-22 23:15:00 +00:00
sshd_permit_root_login: yes
2019-11-02 19:13:10 +00:00
```
2019-11-22 23:15:00 +00:00
### sshd_protocol
2019-11-02 19:13:10 +00:00
#### Default value
```YAML
2019-11-22 23:15:00 +00:00
sshd_protocol: 2
2019-11-02 19:13:10 +00:00
```
2019-11-22 23:15:00 +00:00
### sshd_strict_modes
2019-11-02 19:13:10 +00:00
#### Default value
```YAML
2019-11-22 23:15:00 +00:00
sshd_strict_modes: yes
2019-11-02 19:13:10 +00:00
```
2019-11-22 23:15:00 +00:00
### sshd_tcp_keep_alive
2019-11-02 19:13:10 +00:00
#### Default value
```YAML
2019-11-22 23:15:00 +00:00
sshd_tcp_keep_alive: yes
2019-11-02 19:13:10 +00:00
```
2019-11-22 23:15:00 +00:00
### sshd_use_dns
2019-11-02 19:13:10 +00:00
#### Default value
```YAML
2019-11-22 23:15:00 +00:00
sshd_use_dns: yes
2019-11-02 19:13:10 +00:00
```
2019-11-22 23:15:00 +00:00
### sshd_x11_forwarding
2019-11-02 19:13:10 +00:00
#### Default value
```YAML
2019-11-22 23:15:00 +00:00
sshd_x11_forwarding: yes
2019-11-02 19:13:10 +00:00
```
## Dependencies
None.
## License
MIT
## Author
2019-11-07 08:39:50 +00:00
[xoxys](https://gitea.rknet.org/xoxys)