-
Notifications
You must be signed in to change notification settings - Fork 782
Allow to override settings for sftponly users #794
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
Allow to override settings for sftponly users #794
Conversation
a895c5f to
b3bdd13
Compare
|
Your proposal seems reasonable, but we really want to avoid introducing more variables for our roles. I have spent some time thinking about this and I think you can use existing variables to achieve the same result. We offer a way to add more custom group matches to sshd config via Can you try adding these variables? ssh_server_match_group:
- group: sftponly
rules:
- PasswordAuthentication yes |
|
Hi @schurzi |
|
Hi @schurzi source: https://man7.org/linux/man-pages/man5/sshd_config.5.html
|
|
An alternative solution should be, to move the current defined |
Damn usually the config works as last matching entry wins. I had not considered that this is reverse for Match rules. Your proposal to put the default at the end would work with my initial suggestion and also avoid additional variables. I like that. Do you want to update this MR? |
7bda9dc to
5904ab8
Compare
Signed-off-by: Michael <[email protected]>
Signed-off-by: Michael <[email protected]>
5904ab8 to
4ae5acf
Compare
|
I've rewokrd the PR as discussed. It is also tested and works as expected 👍 |
|
awesome, thank you @mib1185! |
|
Is there already a schedule for the next release of the collection? |
now :) |
This will allow to enable password-based login for sftp, while it is still disabled for ssh connections.
To prevent a breaking change, this new option
sftp_password_logininherits fromssh_server_password_login