Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sshd_config validation fails with: Match Group' in configuration but 'user' not in connection test specification #11

Closed
markusarro opened this issue Aug 25, 2019 · 1 comment
Assignees
Projects

Comments

@markusarro
Copy link

Hi,

On Ubuntu, the role deploys fine with default settings. But with sftp_enabled: true, it fails on sshd_config creation at the validation step. Solved this as described in the dev-sec isse #188:

diff --git a/tasks/main.yml b/tasks/main.yml
index 596bbcc..a356dfa 100644
--- a/tasks/main.yml
+++ b/tasks/main.yml
@@ -166,7 +166,7 @@
     mode: 0600
     owner: "{{ ssh_owner }}"
     group: "{{ ssh_group }}"
-    validate: "/usr/sbin/sshd -T -f %s"
+    validate: "/usr/sbin/sshd -T -C user=root -C host=localhost -C addr=localhost -f %s"
   notify: restart sshd
   tags:
     - configuration

@sbaerlocher sbaerlocher self-assigned this Sep 5, 2019
@sbaerlocher sbaerlocher added this to Progress in Arillso Sep 5, 2019
@sbaerlocher
Copy link
Member

In version 2.0.0 the problem is solved.

Arillso automation moved this from Progress to Close Oct 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Arillso
  
Close
Development

No branches or pull requests

2 participants