-
-
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
sshd_config: ability to define more than one ListenAddress #13
Comments
…ray is given as the value, e.g. value => ['10.0.0.1', '10.0.0.2'], becomes ListenAddress 10.0.0.1 ListenAddress 10.0.0.2 Fixes issue #13
This has now been fixed in 3700366, so it creates a new setting for each value in the array (with the exception of the existing multi-value settings such as AcceptEnv). Thanks for the report. |
Hi Alexander, Please could you try out the fix present in this branch and let me if that fixes it? This now includes tests for cases when the Match section doesn't exist in the config file so should be more robust. |
Hi Dominic! Great work!! Seems to working as it should now. The only this I can see is that the If I have listenaddress or Listenaddress defined with a IP, this is ignored This could be by design and I'm not sure whether this should be handled by Regards, On Sun, Sep 23, 2012 at 4:24 PM, Dominic Cleal notifications@github.comwrote:
|
Thanks for testing, I'll push that code later then. The case sensitivity is definitely a problem, but I don't have a good solution yet. Raphael is trying to get a regexpi() function for case-insensitive regular expressions into Augeas, which might give us a way to match on existing entries irrespective of case. Until then I think we'd need to rewrite aug_match ourselves, which might be an option. I'll file another issue about it anyway. |
It would have been great if sshd_config should was able to define more than one ListeAddress. When I try to define two or more ListenAddresses only the first is written to the configuration file.
I have tried defined ListenAddress in the following way:
Only 10.0.0.1 is written to /etc/ssh/sshd_config
Please let me know if I need to provide more information.
Regards,
Alexander
The text was updated successfully, but these errors were encountered: