Added bind.address parameter.
diff --git a/README.rst b/README.rst
index b83fda0..6e0e32d 100644
--- a/README.rst
+++ b/README.rst
@@ -54,6 +54,8 @@
password_auth: true
host_auth: true
banner: Welcome to server!
+ bind:
+ address: 0.0.0.0
OpenSSH server with auth keys for users
@@ -62,6 +64,8 @@
openssh:
server:
enabled: true
+ bind:
+ address: 0.0.0.0
...
user:
newt:
@@ -82,6 +86,8 @@
openssh:
server:
enabled: true
+ bind:
+ address: 0.0.0.0
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 18ab826..d8e5bc6 100644
--- a/metadata/service/server/init.yml
+++ b/metadata/service/server/init.yml
@@ -5,3 +5,5 @@
server:
enabled: true
password_auth: false
+ bind:
+ address: 0.0.0.0
diff --git a/openssh/files/sshd_config b/openssh/files/sshd_config
index e14af38..ba4e6db 100755
--- a/openssh/files/sshd_config
+++ b/openssh/files/sshd_config
@@ -5,9 +5,12 @@
# What ports, IPs and protocols we listen for
Port 22
+
# Use these options to restrict which interfaces/protocols sshd will bind to
#ListenAddress ::
#ListenAddress 0.0.0.0
+ListenAddress {{ server.bind.address }}
+
Protocol 2
# HostKeys for protocol version 2
HostKey /etc/ssh/ssh_host_rsa_key