Added bind port parameter.
diff --git a/README.rst b/README.rst
index 6e0e32d..747c2c4 100644
--- a/README.rst
+++ b/README.rst
@@ -56,6 +56,7 @@
banner: Welcome to server!
bind:
address: 0.0.0.0
+ port: 22
OpenSSH server with auth keys for users
@@ -66,6 +67,7 @@
enabled: true
bind:
address: 0.0.0.0
+ port: 22
...
user:
newt:
@@ -88,6 +90,7 @@
enabled: true
bind:
address: 0.0.0.0
+ port: 22
public_key_auth: true
authorized_keys_command:
command: /usr/bin/sss_ssh_authorizedkeys
diff --git a/metadata/service/server/init.yml b/metadata/service/server/init.yml
index d8e5bc6..5b20ccd 100644
--- a/metadata/service/server/init.yml
+++ b/metadata/service/server/init.yml
@@ -7,3 +7,4 @@
password_auth: false
bind:
address: 0.0.0.0
+ port: 22
diff --git a/openssh/files/sshd_config b/openssh/files/sshd_config
index ba4e6db..9218544 100755
--- a/openssh/files/sshd_config
+++ b/openssh/files/sshd_config
@@ -4,7 +4,7 @@
# See the sshd_config(5) manpage for details
# What ports, IPs and protocols we listen for
-Port 22
+Port {{ server.bind.port }}
# Use these options to restrict which interfaces/protocols sshd will bind to
#ListenAddress ::