Skip to content

Commit 4317dff

Browse files
author
Richard Vodden
committed
Ensure sshd_config syntax is correct if value is set for ssh_permit_tunnel
1 parent 829c1d8 commit 4317dff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

roles/ssh_hardening/templates/opensshd.conf.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ ClientAliveInterval {{ ssh_client_alive_interval }}
206206
ClientAliveCountMax {{ ssh_client_alive_count }}
207207

208208
# Disable tunneling
209-
PermitTunnel {{ ssh_permit_tunnel }}
209+
PermitTunnel {{ 'yes' if (ssh_permit_tunnel|bool) else 'no' }}
210210

211211
# Disable forwarding tcp connections.
212212
# no real advantage without denied shell access

0 commit comments

Comments
 (0)