- Package:
- openssh-server
- Source:
- openssh
- Description:
- secure shell (SSH) server, for secure access from remote machines
- Submitter:
- Marco d'Itri
- Date:
- 2017-12-08 12:51:03 UTC
- Severity:
- normal
Some environments need PermitRootLogin=yes. They will configure it no matter what the openssh maintainers think about it, so please let's save time for everybody and allow this to be preseeded for new installs as well.
Would you accept a patch to implement this?
The preseed possibility is actually documented in the jessie release notes, see https://www.debian.org/releases/jessie/amd64/release-notes/ch-information.en.html#openssh I tried to use it in vain, then found this bug. Please raise its urgency. :)
What's the problem with simply changing the configuration by usual means as with all other options which are not specifically handled by debconf? Cheers, Chris.
By "usual means" do you mean preseeding late_command with a sed script editing sshd_config? https://www.debian.org/releases/jessie/i386/apbs05.html.en#preseed-hooks That's certainly possible, but preseeding a boolean (as documented) is significantly simpler.
No I rather meant by using the installation system or configuration system you use (FAI, puppet, etc.) Cheers, Chris.
Christoph Anton Mitterer <calestyo@scientia.net> writes: Actually, we only need the initial root login so that our configuration system can bootstrap the login policy of the organization (which means LDAP user DB, SSH key authorization and no root login at all). We could work around this issue in various ways, but we'd rather continue on the known path if possible. And the documentation says it is...
Hi, How is this supposed to work now? On a fresh stretch install, with /etc/ssh/sshd_config being identical to /usr/share/openssh/sshd_config, dpkg-reconfigure openssh-server does not ask anything: # DEBCONF_DEBUG=developer dpkg-reconfigure openssh-server debconf (developer): starting /var/lib/dpkg/info/openssh-server.config reconfigure 1:7.4p1-5 debconf (developer): <-- VERSION 2.0 debconf (developer): --> 0 2.0 debconf (developer): <-- SET openssh-server/permit-root-login true debconf (developer): --> 0 value set debconf (developer): starting /var/lib/dpkg/info/openssh-server.postinst configure 1:7.4p1-5 debconf (developer): <-- VERSION 2.0 debconf (developer): --> 0 2.0 debconf (developer): <-- GET openssh-server/permit-root-login debconf (developer): --> 0 true debconf (developer): <-- X_LOADTEMPLATEFILE /var/lib/dpkg/info/ucf.templates ucf debconf (developer): --> 0 debconf (developer): <-- STOP Should it? Or did this debconf question become deprecated?
Hi Ferenc, I noticed, in https://www.debian.org/releases/jessie/amd64/release-notes/ch-information.en.html#openssh # The "false" value is in fact correct despite being confusing. $ echo 'openssh-server openssh-server/permit-root-login boolean false' | debconf-set-selections Regards, Salvatore