Skip to content

Commit 7212f2f

Browse files
committed
disable ssh forwarding by default
1 parent 67e7468 commit 7212f2f

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

ansible/roles/sshd/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@ Configure sshd.
55
## Role variables
66

77
- `sshd_password_authentication`: Optional bool. Whether to enable password login. Default `false`.
8+
- `sshd_disable_forwarding`: Optional bool. Whether to disable all forwarding features (X11, ssh-agent, TCP and StreamLocal). Default `true`.
89
- `sshd_conf_src`: Optional string. Path to sshd configuration template. Default is in-role template.
910
- `sshd_conf_dest`: Optional string. Path to destination for sshd configuration file. Default is `/etc/ssh/sshd_config.d/10-ansible.conf` which overides `50-{cloud-init,redhat}` files, if present.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
sshd_password_authentication: false
2+
sshd_disable_forwarding: true
23
sshd_conf_src: sshd.conf.j2
34
sshd_conf_dest: /etc/ssh/sshd_config.d/10-ansible.conf
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
# {{ ansible_managed }}
22
PasswordAuthentication {{ 'yes' if sshd_password_authentication | bool else 'no' }}
3+
DisableForwarding {{ 'yes' if sshd_disable_forwarding | bool else 'no' }}

0 commit comments

Comments
 (0)