News for hackers. Stuff that matters.
Re:Cockpit: Web-based graphical interface for servers by tanelpoder on Monday October 16, 2023 @03:58AM (#37896929)
I ended up reading more about this and looks like SSHD in Ubuntu 22.10 and later also uses systemd socket activation. So there should be no sshd process(es) started until someone SSHs in!

https://discourse.ubuntu.com/t/sshd-now-uses-socket-based-ac...

Re:Cockpit: Web-based graphical interface for servers by smetj on Monday October 16, 2023 @04:19AM (#37897040)
Certainly for SSH I find this a bad idea. If you need to ssh into a troubled machine then it might very well be it cannot be started.
Re:Cockpit: Web-based graphical interface for servers by dale_glass on Monday October 16, 2023 @07:30AM (#37898268)
If it's so troubled that a process won't start, it's probably time to reach for the IPMI console. Even if ssh is still running, if the system is that broken, is bash going to start, or what tools you might need?
Re:Cockpit: Web-based graphical interface for servers by yabones on Monday October 16, 2023 @09:27AM (#37899596)
I've rescued pretty messed up systems before. In one case, a service went haywire and created tens of millions of <1kb files, eating up all the available inodes in the filesystem. The volume was only ~45% full, but you couldn't make any new files. If that happened here, it's unlikely the ssh process could start correctly since it creates locks, logs, and pid files. Those are mostly in /run, so it might be okay, but it does make me a bit antsy.
Re:Cockpit: Web-based graphical interface for servers by belthesar on Monday October 16, 2023 @10:55AM (#37900681)
I don't necessarily think it's an outright bad idea, but it's certainly a departure from how sshd is traditionally run, and without awareness of this kind of change, this kind of "magic" runtime change could lead you to not expecting sshd to be unavailable in this kind of a scenario, and increase time to resolution during an incident.

If your systems are more pets than cattle, then I think I too would prefer an always-running ssh daemon. If your workflow is only to ssh into machines during bootstrap, however, then having sshd run only during initial bootstrap and then shut itself off does seem like a nice way to free up a small amount of resources without stopping or disabling the daemon post-bootstrap.

Re:Cockpit: Web-based graphical interface for servers by JAlexoid on Monday October 16, 2023 @12:11PM (#37901956)
TBH - for any non-server class machine on my network, I'm fine with that.

SSH should probably be running 24/7 on any server(to keep those resources allocated for maintenance access), but if it's my workstation with a monitor - then it's a non-issue.

Re:Cockpit: Web-based graphical interface for servers by talent_deprived on Monday October 16, 2023 @10:09AM (#37900110)
This is messed up, totally messed up:

"On upgrades from Ubuntu 22.04 LTS, users who had configured Port settings or a ListenAddress setting in /etc/ssh/sshd_config will find these settings migrated to /etc/systemd/system/ssh.socket.d/addresses.conf."

It's like Canonical is doing 1960's quality acid.

At least the garbage can be disabled:

"it is still possible to revert to the previous non-socket-activated behavior"

With having to remove snapd then mark it to not be installed and in the next Ubuntu having to fix ssh back to the current behavior, it might be easier to migrate my servers back to Debian, or look for a solid non-systemd OS.

Re:Cockpit: Web-based graphical interface for servers by 9dev on Monday October 16, 2023 @11:49AM (#37901552)
What exactly is "garbage" about this? It's so tiring how systemd opponents insist on name-calling instead of substantiated criticism.

There is no reason every single application should manage network socket acquisition on its own - I'm not very fond of the times everyone and their mother wrote whacky shell scripts to start and stop their services, either. But somehow those seem to be the "good old times" you guys miss.

Re:Cockpit: Web-based graphical interface for servers by all2 on Monday October 16, 2023 @12:04PM (#37901831)
I don't think its a systemD thing. This sounds more like an issue with changing a server's behaviour without asking.
Re:Cockpit: Web-based graphical interface for servers by 9dev on Monday October 16, 2023 @02:20PM (#37903932)
Distribution upgrades have never been an unobtrusive thing. Despite this, everything will continue working exactly as configured before the upgrade, which applies new configuration recommendations by the vendor. What is wrong with that?
Re:Cockpit: Web-based graphical interface for servers by all2 on Monday October 16, 2023 @02:46PM (#37904275)
What's wrong is the config file moved. If a sysadmin is used to a config file being somewhere they know, and then it disappears that can be extremely frustrating. Especially on a production system.
Re:Cockpit: Web-based graphical interface for servers by 9dev on Monday October 16, 2023 @04:20PM (#37905952)
Which the sysadmin knows, because they reviewed the changelog for the major system upgrade they just did. You wouldn’t install a new major version of a database without any precautions either, right?
Re:Cockpit: Web-based graphical interface for servers by all2 on Monday October 16, 2023 @08:50PM (#37908821)
> because they should have reviewed the changelog

I.. uhh.. Yeah.

Re:Cockpit: Web-based graphical interface for servers by 9dev on Tuesday October 17, 2023 @01:03AM (#37910824)
No, seriously, my point is: can you blame anyone else if you don’t?
Re:Cockpit: Web-based graphical interface for servers by itsTyrion on Saturday October 28, 2023 @02:28AM (#38047644)
Ew