Skip to content

Commit 5927019

Browse files
author
Michael Hoffman
committed
updated template removed 2 spaces between key/value that sshd was constantly re-writing
1 parent 32611c3 commit 5927019

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

templates/default/opensshd.conf.erb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,17 +161,17 @@ PermitTunnel no
161161

162162
# Disable forwarding tcp connections.
163163
# no real advantage without denied shell access
164-
AllowTcpForwarding <%= ((@node['ssh-hardening']['ssh']['server']['allow_tcp_forwarding']) ? 'yes' : 'no' ) %>
164+
AllowTcpForwarding <%= ((@node['ssh-hardening']['ssh']['server']['allow_tcp_forwarding']) ? 'yes' : 'no' ) %>
165165

166166
# Disable agent formwarding, since local agent could be accessed through forwarded connection.
167167
# no real advantage without denied shell access
168-
AllowAgentForwarding <%= ((@node['ssh-hardening']['ssh']['server']['allow_agent_forwarding']) ? 'yes' : 'no' ) %>
168+
AllowAgentForwarding <%= ((@node['ssh-hardening']['ssh']['server']['allow_agent_forwarding']) ? 'yes' : 'no' ) %>
169169

170170
# Do not allow remote port forwardings to bind to non-loopback addresses.
171171
GatewayPorts no
172172

173173
# Disable X11 forwarding, since local X11 display could be accessed through forwarded connection.
174-
X11Forwarding <%= ((@node['ssh-hardening']['ssh']['server']['allow_x11_forwarding']) ? 'yes' : 'no' ) %>
174+
X11Forwarding <%= ((@node['ssh-hardening']['ssh']['server']['allow_x11_forwarding']) ? 'yes' : 'no' ) %>
175175
X11UseLocalhost yes
176176

177177

0 commit comments

Comments
 (0)