summaryrefslogtreecommitdiff
path: root/templates/sshd_config/OpenBSD_normal.erb
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2008-09-26 18:23:25 -0400
committerMicah Anderson <micah@riseup.net>2008-09-26 18:23:25 -0400
commit26e4ac53a93c61fad4c07c44009cd180e4196d36 (patch)
treefd279e2498af12c00fa1f59d32306f193f3e0860 /templates/sshd_config/OpenBSD_normal.erb
parente525f18d129ac3b9adc8e6df89c9e5e48367439c (diff)
add sshd_port variable enabling you to set a different port for sshd, default is 22
Diffstat (limited to 'templates/sshd_config/OpenBSD_normal.erb')
-rw-r--r--templates/sshd_config/OpenBSD_normal.erb7
1 files changed, 6 insertions, 1 deletions
diff --git a/templates/sshd_config/OpenBSD_normal.erb b/templates/sshd_config/OpenBSD_normal.erb
index 96d8bbd..139613a 100644
--- a/templates/sshd_config/OpenBSD_normal.erb
+++ b/templates/sshd_config/OpenBSD_normal.erb
@@ -8,7 +8,12 @@
# possible, but leave them commented. Uncommented options change a
# default value.
-#Port 22
+<%- unless real_sshd_port.to_s.empty? then %>
+Port <%= real_sshd_port %>
+<%- else %>
+Port 22
+<%- end %>
+
#Protocol 2,1
#AddressFamily any
#ListenAddress 0.0.0.0