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:
parent
9655cae609
commit
b311fc8236
4 changed files with 4 additions and 2 deletions
|
@ -9,7 +9,7 @@
|
|||
# possible, but leave them commented. Uncommented options override the
|
||||
# default value.
|
||||
|
||||
#Port 22
|
||||
Port {{ ssh_listen_port }}
|
||||
#AddressFamily any
|
||||
#ListenAddress 0.0.0.0
|
||||
#ListenAddress ::
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
Include /etc/ssh/sshd_config.d/*.conf
|
||||
|
||||
#Port 22
|
||||
Port {{ ssh_listen_port }}
|
||||
#AddressFamily any
|
||||
#ListenAddress 0.0.0.0
|
||||
#ListenAddress ::
|
||||
|
|
|
@ -3,3 +3,4 @@
|
|||
ssh_password_authentication: "yes"
|
||||
ssh_print_motd: "no"
|
||||
ssh_print_lastlog: "no"
|
||||
ssh_listen_port: "22"
|
||||
|
|
|
@ -3,3 +3,4 @@
|
|||
ssh_password_authentication: "no"
|
||||
ssh_print_motd: "no"
|
||||
ssh_print_lastlog: "no"
|
||||
ssh_listen_port: "22"
|
||||
|
|
Loading…
Reference in a new issue