From 1e1c3ce3e8773bec8ad32919ef25e13be296c53e Mon Sep 17 00:00:00 2001 From: Adam Lewenberg <adamhl@stanford.edu> Date: Wed, 14 Aug 2013 16:03:59 -0700 Subject: [PATCH] sshd config: sshd wants the Port directive to come BEFORE ListenAddress --- templates/ssh/sshd_config.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/ssh/sshd_config.erb b/templates/ssh/sshd_config.erb index d7429b8..413c16c 100644 --- a/templates/ssh/sshd_config.erb +++ b/templates/ssh/sshd_config.erb @@ -4,6 +4,7 @@ # GSS-API. It will eventually become the default. The default configuration # values that we don't change are omitted from this file. +Port 22 <% if (listen_addresses != 'all') # Split the addresses at the commas. @@ -15,7 +16,6 @@ ListenAddress <%= address %> end end -%> -Port 22 # Only support protocol version 2. Protocol 2 -- GitLab