-
Notifications
You must be signed in to change notification settings - Fork 137
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
Ubuntu 22.04 sftp error #185
Comments
Also not assigning the variable in my playbook also solves it, but I would like to be able to continue to use this functionality. |
Thank you for opening the issue. Can you describe what parameters you used to execute the sshd role? The defaults should be skipped when the drop-in directory is used, but there might be some corner case that I did not capture. |
Thank you for checking. I missed this and as this has indeed separate Right now, we validate the drop-in config file by itself, which works ok, so it is copied into the place. But then we just check the Fortunately, it looks like the upstream is planning to fix this behavior: https://bugzilla.mindrot.org/show_bug.cgi?id=3236 Before that, we can probably revert the configuration if it will not work together, but it will require some more custom backup and restore as there is no simple way to do that atomically with default ansible modules. I will try to propose some changes, but probably not today. Skip defaults is probably ok, as you have quite extensive configuration, which should cover all you need. |
I am also hitting this problem. It looks like the fix has been applied upstream but I am not sure if it will be backported to ubuntu22.04 |
It was committed 2 weeks ago and is not in any released version yet. If you wish to get this fixed in Ubuntu, please open an Ubuntu bug report. |
I am using this workaround
and then I can configure the sftp subsystem using this role |
If this is used with ubuntu 22.04 the
sshd_config
is placed in the/etc/ssh/sshd_config.d
directory. This is fine except that if default options are overridden in this role (for example SFTP server) then the ssh server will fail to start as they still exist in the default config file/etc/ssh/sshd_config
.Deleting the line in
/etc/ssh/sshd_config
solves the issue.If this is expected, maybe some documentation could be added, or if unexpected I could help with a fix.
The text was updated successfully, but these errors were encountered: