ssh: listen port als variable (#230)

Co-authored-by: Michael Grote <michael.grote@posteo.de>
Reviewed-on: mg/ansible#230
Co-authored-by: mg <michael.grote@posteo.de>
Co-committed-by: mg <michael.grote@posteo.de>
This commit is contained in:
Michael Grote 2021-10-22 15:39:29 +02:00
parent 9655cae609
commit b311fc8236
4 changed files with 4 additions and 2 deletions

View file

@ -9,7 +9,7 @@
# possible, but leave them commented. Uncommented options override the # possible, but leave them commented. Uncommented options override the
# default value. # default value.
#Port 22 Port {{ ssh_listen_port }}
#AddressFamily any #AddressFamily any
#ListenAddress 0.0.0.0 #ListenAddress 0.0.0.0
#ListenAddress :: #ListenAddress ::

View file

@ -11,7 +11,7 @@
Include /etc/ssh/sshd_config.d/*.conf Include /etc/ssh/sshd_config.d/*.conf
#Port 22 Port {{ ssh_listen_port }}
#AddressFamily any #AddressFamily any
#ListenAddress 0.0.0.0 #ListenAddress 0.0.0.0
#ListenAddress :: #ListenAddress ::

View file

@ -3,3 +3,4 @@
ssh_password_authentication: "yes" ssh_password_authentication: "yes"
ssh_print_motd: "no" ssh_print_motd: "no"
ssh_print_lastlog: "no" ssh_print_lastlog: "no"
ssh_listen_port: "22"

View file

@ -3,3 +3,4 @@
ssh_password_authentication: "no" ssh_password_authentication: "no"
ssh_print_motd: "no" ssh_print_motd: "no"
ssh_print_lastlog: "no" ssh_print_lastlog: "no"
ssh_listen_port: "22"