7 ms·
Looking forward to the release. I use Debian Stable on almost all the systems I use (one is stuck on 10/Buster due to MoinMoin). I installed Trixie in a contai
by sherr 1y ago
Looking forward to the release.
I use Debian Stable on almost all the systems I use (one is stuck on 10/Buster due to MoinMoin). I installed Trixie in a container last week, using an LXC container downloaded from linuxcontainers.org [1].
Three things I noted on the basic install :
1) Ping didn't work due to changed security settings (iputils-ping) [2]
2) OpenSSH server was installed as systemd socket
activated and so ignored /etc/ssh/sshd_config*. Maybe this is something specific to the container downloaded.
3) Systemd-resolved uses LLMNR as an name lookup alternative to DNS and pinging a firewalled host failed because the lookup seemed to be LLMNR accessing TCP port 5355. I disabled LLMNR.
Generally, Debian version updates have been succesful with me for a few years now, but I always have a backup, and always read the release notes.
[1] https://linuxcontainers.org https://linuxcontainers.org
[2] https://www.debian.org/releases/trixie/release-notes/issues.en.html#ping-no-longer-runs-with-elevated-privileges https://www.debian.org/releases/trixie/release-notes/issues....
- jimmaswell 1y agoThe OpenSSH change is madness if it's not a bug. I hope it's not intentional.
- tharos47 1y agoIt was done in Ubuntu a few versions ago. Afaik only the listening port config is ignored and instead is setup in systemd
- hsbauauvhabzb 1y agoWhich is exactly the problem. It’s not obvious, is misleading and it’s cause is not easily determined just by looking at the config. What else is lurking that you and I aren’t aware of?
- imoverclocked 1y ago> What else is lurking that you and I aren’t aware of? All of systemd... and network manager/modem manager/... I grew up with static configuration files, init scripts, inetd, etc... then grew into Solaris smf, dtrace, zones ... and then Linux implemented systemd. I really miss smf and related tools but systemd is still just meh to me. The implementation feels like a somewhat half-in-each-world brainchild.
- tremon 1y agoThe problem is that SSH is usually the admin interface to the system. You don't want unnecessary moving parts between you and your remote shell access when you need to troubleshoot a half-running system.
- hsbauauvhabzb 1y agoI agree with everything but your indication that the problem is limited to only SSH.
- Evidlo 1y ago> 2) OpenSSH server was installed as systemd socket activated and so ignored /etc/ssh/sshd_config*. Maybe this is something specific to the container downloaded. Doesn't the .socket unit point to a .service unit? Why would using a socket be connected to which config sshd reads?
- edoceo 1y agoI'm assuming this means it doesn't respect socket config in the sshd_config so, you configure the listening port in systemd.
- LooseMarmoset 1y agosystemd-resolved is an effing nightmare when combined with network-manager. these two packages consistently manage to stomp all over DNS resolution in their haste to be the one true source of name resolution. i tried enabling systemd-resolved as part of an effort to do dns over https and i end up with zero dns. i swear that /etc/resolv.conf plus helper scripts is more consistent and easy.
- wpm 1y agoIt’s why I always say in the typical “systemd bad” threads that systemd the init system is great, it’s the systemd-* everything else’s that give it a bad name. I want systemd nowhere fucking near my NTP or DNS config.
- blueflow 1y agoThank god you can enable and disable each of these components in complete isolation, so you don't suffer any kind of lock-in from systemd.
- LooseMarmoset 1y agodevuan saved just enough of my sanity for me to function
- chrsw 1y agoYes! I'm hoping for another Devuan release after this.
- spookie 1y agoYeah, pretty incredible distro. Some rough edges here and there but man, even maintenance is a dream. It's just plain simpler to diagnose, and actually control what the system does. Instead of having to go down abstraction hell land. Don't get me wrong, systemd is cool. But my god people really abuse of it. Especially distros. Some really make it hard to understand what service is in actual control. Why wrap daemons in daemons in daemons? With the worst possible names and descriptions to boot.
- e2le 1y agoWhat is the rationale for changing OpenSSH into a socket activated service? Given that it comes with issues, I assume the benefits outweigh the downsides.
- idoubtit 1y ago> Given that it comes with issues, I assume the benefits outweigh the downsides. Any change can introduce regressions or break habits. The move toward socket activation for sshd is part of a larger change in Debian. I don't think the Debian maintainers changed that just for the fun of it. I can think of two benefits: + A service can restart without interruption, since the socket will buffer the requests during the restart. + Dependencies are simpler and faster (waiting for a service to start and accept requests is costly). My experience is that these points largely outweigh the downsides (the only one I can think of is that the socket could be written in two places).
- blueflow 1y ago> Dependencies are simpler and faster (waiting for a service to start and accept requests is costly) Yeah, but requiring a service's response is why its a dependency in the first place, no?
- zbentley 1y agoI also have a hunch that socket activation allows for more predictability around what a not-running/listening-for-activation service's port is doing at the syscall/kernel level, which in turn makes power saving and/or sleep states a little more predictably efficient. Total guess, mind you.
- TacticalCoder 1y ago> Given that it comes with issues, I assume the benefits outweigh the downsides. I think it doesn't outweight the downside. Let's not forget this: "OpenSSH normally does not load liblzma, but a common third-party patch used by several Linux distributions causes it to load libsystemd, which in turn loads lzma." The "XZ utils backdoor" nearly backdoored every single distro running systemd. People (including those who tried to plant this backdoor) are going to say: "systemd has nothing to do with the backdoor" but I respectfully disagree. systemd is one heck of a Rube-Goldberg piece of machinery: the attack surface is gigantic seen that systemd's tentacles reaches everywhere. With a tinfoil hat on one could think the goal of systemd was, precisely, to make sure the most complicated backdoors could be inserted here and there: "Let's have openssh use a lib it doesn't need at all because somehow we'll call libsystemd from openssh". Genius idea if you ask me. What could possibly go wrong with systemd "now just opening a port for openssh" uh? Nothing I'm sure. Now that said I'm very happy that we've now got stuff like the Talos Linux distribution (ultra minimal, immutable, distro meant to run Kubernetes with as few executables as possible and of course no systemd) and then containers using Alpine Linux or, even if Debian based, minimal system with (supposedly) only one process running (and, once again, no systemd). Containerization is one way out of systemd. I can't wait for a good systemd-less hypervisor: then I can kiss Microsoft goodbye (systemd is a Microsoft technology, based on Microsoftism, by a now Microsoft employee). Thanks but no thanks. Talos distro, systemd-less containers: I want more of this kind of mindset. The future looks very nice. systemd lovers should just throw the towel in and switch to Windows: that's what they actually really want and it's probably no better than they deserve.
- idoubtit 1y ago> 2) OpenSSH server was installed as systemd socket activated and so ignored /etc/ssh/sshd_config. sshd still reads /etc/ssh/sshd_config at startup. As far as I know, this is hard-coded in the executable. What Debian has changed happens before the daemon is launched: the service is socket activated. So, _if you change the default port of sshd_ in its config, then you have to change the activation: - either enable the sshd@service without socket activation, - or modify the sshd.socket file (`systemctl edit sshd.socket`) which has the port 22 by default. Since Debian already have a environment file (/etc/default/ssh), which is loaded by this service, the port could be set in a variable there and loaded by the socket activation. But then it would conflict with OpenSSH's own files. This is why I've always disliked /etc/default/ as a second level of configuration in Debian.
- JdeBP 1y agoI suspect that systemd people are looking at this thread in perplexity, and probably doing their thing (that I've seen over the years) of regarding the world of Debian as being amazingly behind the times in places. The SSH server being a socket unit with systemd doing all of the socket parallelism-limiting and accepting was one of the earliest examples of socket activation ever given in systemd. It was in one of Lennart Poettering's earliest writings on the subject back in 2011. * https://0pointer.de/blog/projects/inetd.html https://0pointer.de/blog/projects/inetd.html And even that wasn't the earliest discussion of this way of running SSH by a long shot, as this was old news even before systemd was invented. One can go back years earlier than even Barrett's, Silverman's, and Byrnes's SSH: The Secure Shell: The Definitive Guide published in 2005, which is one of many places explaining that lots of options in sshd_config get ignored when SSH is started by something else that does all of the socket stuff. Like inetd. This has been the case ever since it has been possible to put an SSH server together with inetd in "nowait" mode. Some enterprising computer historian might one day find out when the earliest mention of this was. It might even be in the original 1990s INSTALL file for SSH.
- rodgerd 1y agoAs you say, network programs activating from a master network management is, of course, the history of Unix. It's ironic to see knee-jerk complaints about it.
- roryirvine 1y agoThe original SSH server was daemonized by default, but inetd operation was always supported. The INSTALL file said this in 1995: The server is not started using inetd, because it needs to generate the RSA key before serving the connection, and this can take about a minute on slower machines. On a fast machine, and small (breakable) key size (< 512 bits) it may be feasible to start the server from inetd on every connection. The server must be given "-i" flag if started from inetd. And, of course, SSH was designed to replace rlogin and rsh - both of which ran from inetd as standard. As you say, socket-activation of sshd is simply following very long-standing Unix practice: it's not at all novel, and there's no reason to believe that it's any more risky than any other method of running it.