diff options
author | Micah Anderson <micah@riseup.net> | 2008-09-26 18:23:25 -0400 |
---|---|---|
committer | Micah Anderson <micah@riseup.net> | 2008-09-26 18:23:25 -0400 |
commit | 26e4ac53a93c61fad4c07c44009cd180e4196d36 (patch) | |
tree | fd279e2498af12c00fa1f59d32306f193f3e0860 /templates/sshd_config/Debian_normal.erb | |
parent | e525f18d129ac3b9adc8e6df89c9e5e48367439c (diff) | |
download | puppet-sshd-26e4ac53a93c61fad4c07c44009cd180e4196d36.tar.gz puppet-sshd-26e4ac53a93c61fad4c07c44009cd180e4196d36.tar.bz2 |
add sshd_port variable enabling you to set a different port for sshd, default is 22
Diffstat (limited to 'templates/sshd_config/Debian_normal.erb')
-rw-r--r-- | templates/sshd_config/Debian_normal.erb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/templates/sshd_config/Debian_normal.erb b/templates/sshd_config/Debian_normal.erb index f6a2a81..7cdb5f2 100644 --- a/templates/sshd_config/Debian_normal.erb +++ b/templates/sshd_config/Debian_normal.erb @@ -2,7 +2,13 @@ # See the sshd(8) manpage for defails # What ports, IPs and protocols we listen for -# Port 22 + +<%- unless real_sshd_port.to_s.empty? then %> +Port <%= real_sshd_port %> +<%- else %> +Port 22 +<%- end %> + # Use these options to restrict which interfaces/protocols sshd will bind to #ListenAddress :: #ListenAddress 0.0.0.0 |