And ssh-via-AF_VSOCK is precisely what we are doing in systemd v256: a small new unit generator (i.e. a plugin that extends systemd's unit tree dynamically) detects if AF_VSOCK is available and sshd is installed, and if so binds AF_VSOCK/port 22 to sshd, via socket activation. Or in other words: in environments where AF_VSOCK is a thing, sshd will now *just* work, without any extra configuration and at minimal cost of resources (because lazy socket activation rocks).
@pid_eins So. A thread.
Here we have yet another perfect example of the systemd modus operandi:
1. Take a genuinely good core idea, e.g. take advantage of the genericity and simplicity of Unix design and the willingness of Linux to follow it.
2. Add some low-value functionality to make it look like only systemd can provide the good core idea, and tie it in with existing systemd functionality, in as integrated a fashion as possible.
3. Profit: now, people who want to use the new functionality are locked in with systemd!
This is why systemd is so successful, why it has so much adoption despite having been so controversial for more than a decade. This is how it works: doing good things, but the systemd way. If you want the good things, you need to opt into the whole model. And since lots of people use systemd, it snowballs: people won't bother writing other ways of using the good things because systemd already provides them! And so, a monoculture is born, and people who question it are marginalized: what's wrong with you, don't you like good things?
Yes, Janet, I do like good things, and I wish I could get them and *only* them. So, let's analyze this example to see how this could be done.
@pid_eins So. A thread.
Here we have yet another perfect example of the systemd modus operandi:
1. Take a genuinely good core idea, e.g. take advantage of the genericity and simplicity of Unix design and the willingness of Linux to follow it.
2. Add some low-value functionality to make it look like only systemd can provide the good core idea, and tie it in with existing systemd functionality, in as integrated a fashion as possible.