-
-
Notifications
You must be signed in to change notification settings - Fork 46
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
Bug: When managing both Port and ListenAddress in sshd_config, Port *must* precede ListenAddress #68
Comments
Thank you for the report. This might not be very easy to fix, as it will require to implement positioning and add some parameter intelligence to the provider. |
Do you know of other parameters for which order matters in sshd_config? |
As far as I can tell, that's the only set that matters. On Fri, Feb 21, 2014 at 2:43 AM, Raphaël Pinson notifications@github.comwrote:
Trevor Vaughan -- This account not approved for unencrypted proprietary information -- |
OK. I can try to see what I can do. |
I had a hard time reproducing the bug with the unit tests, because this already works if you have a commented Port entry before the first ListenAddress entry. Indeed, the current code uncomments existing commented entries, so if you have:
and you set:
it will uncomment the value, and the order will be fine. |
Fair enough, but if you try it in a Host sub-entry, it won't work. On Fri, Feb 21, 2014 at 10:28 AM, Raphaël Pinson
Trevor Vaughan -- This account not approved for unencrypted proprietary information -- |
I did commit a patch for the |
Having a look at doing that inside Match blocks now. |
+1 Thanks! Trevor On Fri, Feb 21, 2014 at 10:32 AM, Raphaël Pinson
Trevor Vaughan -- This account not approved for unencrypted proprietary information -- |
Fixed in abb8adc |
Currently, the module simply appends Port to the end of the list which causes sshd to fail to restart.
The text was updated successfully, but these errors were encountered: