diff --git a/templates/ssh/sshd_config.erb b/templates/ssh/sshd_config.erb
index cbf3aa03cee9f53a7df308c80fe3eee2b4476e05..d7429b865a9d3a4a8545b9b06efe9e7fdf1d300a 100644
--- a/templates/ssh/sshd_config.erb
+++ b/templates/ssh/sshd_config.erb
@@ -72,12 +72,12 @@ PermitRootLogin without-password
 # Allow X forwarding.
 X11Forwarding yes
 X11DisplayOffset 10
-<% if operatingsystem != 'RedHat' then -%>
 
+<% if operatingsystem != 'RedHat' then -%>
 # Disable printing of the MOTD, since this is done via other means on Debian.
 PrintMotd no
-<% end -%>
 
+<% end -%>
 # Send TCP keep-alive messages to keep the connection open through firewalls
 # and notice connection termination.
 TCPKeepAlive yes