Commit c827e2d7 authored by ale's avatar ale
Browse files

Make SSH listen port configurable

parent 20334f68
Pipeline #17178 passed with stages
in 5 minutes and 33 seconds
......@@ -16,6 +16,9 @@ backup_repository_restic_password: ""
# A fallback SSH key that can be used in an emergency to login as root.
emergency_ssh_key: ""
# Port that SSH should listen on (best to keep it at the default).
ssh_port: 22
# The Debian distribution that we are using as the basis.
float_debian_dist: "buster"
......
......@@ -45,3 +45,7 @@ allow_port tcp 5331 -j allow-monitoring # backup-agent (tabacco)
allow_port tcp {{ port }} -j allow-monitoring
{% endfor %}
{% endif %}
{% if ssh_port != 22 %}
allow_port tcp {{ ssh_port }}
{% endif %}
# Package generated configuration file
# See the sshd_config(5) manpage for details
Port 22
Port {{ ssh_port }}
#ListenAddress ::
#ListenAddress 0.0.0.0
Protocol 2
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment