this post was submitted on 06 Jan 2026
60 points (62.8% liked)

linuxmemes

29002 readers
284 users here now

Hint: :q!


Sister communities:


Community rules (click to expand)

1. Follow the site-wide rules

2. Be civil
  • Understand the difference between a joke and an insult.
  • Do not harrass or attack users for any reason. This includes using blanket terms, like "every user of thing".
  • Don't get baited into back-and-forth insults. We are not animals.
  • Leave remarks of "peasantry" to the PCMR community. If you dislike an OS/service/application, attack the thing you dislike, not the individuals who use it. Some people may not have a choice.
  • Bigotry will not be tolerated.
  • 3. Post Linux-related content
  • Including Unix and BSD.
  • Non-Linux content is acceptable as long as it makes a reference to Linux. For example, the poorly made mockery of sudo in Windows.
  • No porn, no politics, no trolling or ragebaiting.
  • Don't come looking for advice, this is not the right community.
  • 4. No recent reposts
  • Everybody uses Arch btw, can't quit Vim, <loves/tolerates/hates> systemd, and wants to interject for a moment. You can stop now.
  • 5. 🇬🇧 Language/язык/Sprache
  • This is primarily an English-speaking community. 🇬🇧🇦🇺🇺🇸
  • Comments written in other languages are allowed.
  • The substance of a post should be comprehensible for people who only speak English.
  • Titles and post bodies written in other languages will be allowed, but only as long as the above rule is observed.
  • 6. (NEW!) Regarding public figuresWe all have our opinions, and certain public figures can be divisive. Keep in mind that this is a community for memes and light-hearted fun, not for airing grievances or leveling accusations.
  • Keep discussions polite and free of disparagement.
  • We are never in possession of all of the facts. Defamatory comments will not be tolerated.
  • Discussions that get too heated will be locked and offending comments removed.
  •  

    Please report posts and comments that break these rules!


    Important: never execute code or follow advice that you don't understand or can't verify, especially here. The word of the day is credibility. This is a meme community -- even the most helpful comments might just be shitposts that can damage your system. Be aware, be smart, don't remove France.

    founded 2 years ago
    MODERATORS
    top 46 comments
    sorted by: hot top controversial new old
    [–] e8d79@discuss.tchncs.de 145 points 2 weeks ago* (last edited 2 weeks ago) (1 children)

    If I understand it correctly this just proxies ssh connections through a more efficient type of socket when its a ssh connection between a VM and its Host machine. No SSH daemon is started by systemd by default making this once again misinformation by the anti-systemd crowd.

    [–] edinbruh@feddit.it 72 points 2 weeks ago* (last edited 2 weeks ago) (1 children)

    Hmmm, I'm pretty sure you just need to systemctl disable sshd.socket and then configure it how you like. Don't trust every "solution" you see online, they are often full of bullshit written by people trying to fit a square peg in a round hole. I bet that kernel parameter thing is something to disable it on the first boot, before you get the chance to configure the thing properly.

    Edit: @thorhop@sopuli.xyz wrote a comment about that option here, go to the thread if you are interested.

    [–] vapeloki@lemmy.world 24 points 2 weeks ago (1 children)

    This! Disable sshd sock, maybe rebuild initramfs.

    And, the "kernel command line" is also used by the initramfs for fucks sake ....

    [–] edinbruh@feddit.it 23 points 2 weeks ago* (last edited 2 weeks ago) (1 children)

    Honestly, one of the worst parts of the Linux community is people trying to force 30 years old tools in systems built around systemd. If you want to use that old stuff then don't install the modern replacement, find a different distro built around that ideal instead.

    I remember a post on serverfault or askubuntu about disabling DHCP default gateway but keeping DHCP address assignment on a tap interface, and bring it up at boot, and the accepted answers was "configuring DHCP in networkd/NetworkManager systems is almost impossible, here's how I did it" and it's three pages of cobbling together ifconfig and netplan with startup scripts, that work by pure chance.

    Wanna see the actual full networkd configuration for that?

    # /etc/systemd/network/tap0.network
    [Match]
    Name=tap0
    
    [Network]
    DHCP=ipv4
    
    [DHCPv4]
    UseRoutes=false
    

    That's it, all that the post asked for is handled by six lines. "How do I discover that?" you may ask, because if it's three lines, but I have to dig for hours before finding it than it's not that useful. Simple, I go on the systemd documentation for .network files and search for DHCP. And this is a niche use case, the basic usage is readily available on the arch wiki as with anything else. Note, this does nothing for IPv6, and the interface will have IPv6 route configured, but this wasn't relevant to the post, and my home's IPv6 layout is "peculiar" so I have omitted it here.

    [–] MyBrainHurts@piefed.ca 48 points 2 weeks ago (5 children)

    I uhhh, just loaded Mint the other week. Any chance someone can English this for me?

    [–] thorhop@sopuli.xyz 108 points 2 weeks ago* (last edited 2 weeks ago) (5 children)

    Op is a bit confused, but here's a primer first:

    SSH stands for Secure SHell and is a protocol to logon to a terminal shell via network.

    You need to have an SSHd (or Secure SHell Daemon i.e a background service) running to accept and facilitate connections.

    Systemd is a suite of services and tools that manage a Linux system, like a init system, service management, handing run levels, socket management, logging etc and gives the user tools like systemctl, journalctl, bootctl, basically anything ending with ctl is conventionally a systemd tool for users to manage their systems with.

    Get it? Got it? Good.

    systemd.autossh is an embedded ssh client in systemd that tries to help in reestablishing dropping connections. It does not actually start an SSHd (the actual service that facilitates connections) and is embedded for convenience to minimize frustrations with dropping connections.

    You can read about it here.

    [–] SnotFlickerman@lemmy.blahaj.zone 66 points 2 weeks ago (3 children)

    *defeatedly puts away torch and pitchfork

    *kicks dirt

    Shucks I never get to be mad about systemd!

    [–] JollyG@lemmy.world 24 points 2 weeks ago

    Every day I wake up and think to myself “today is the day I will form a strong opinion about systemd” but it never happens.

    [–] Digit@lemmy.wtf 4 points 2 weeks ago (1 children)

    It's upsetting for systemd users too, not having angry haters to go "See!?!!" back at.

    [–] bastion@feddit.nl 1 points 2 weeks ago (1 children)

    I can't believe you're dissing systemd indirectly by dissing the reaction of systemd users to the reaction of the users that hate systemd.

    To any neutral observers out there: See!?!! This is the kind of crap we get from the haters.

    /s of course, I have no skin in this game. Any time I mess with init systems, I have to look up usage, no matter the system involved, and I haven't run into anything too onerous.

    [–] Digit@lemmy.wtf 2 points 2 weeks ago (1 children)

    Any time I mess with init systems, I have to look up usage, no matter the system involved

    Yeah. Just don't interact with them often enough to remember and build muscle memory. Though, runit is very nice, very simple. E.g. sv up thing

    [–] bastion@feddit.nl 1 points 1 week ago

    I do have some usage interaction, so ease of script writing is the most important for me.

    I've heard of runit.. ..one of the inits impressed me recently in regard to script writing - maybe what's used on OpenWRT. But, I don't remember if that was runit. You can tell how vested i am here. XD

    [–] ZoteTheMighty@lemmy.zip 3 points 2 weeks ago* (last edited 2 weeks ago)

    Just be mad at systemd the same way everyone else is; invent your own reality and throw a fit about that instead!

    [–] nesc@lemmy.cafe 12 points 2 weeks ago

    Op actually writes about systemd-ssh-generaror which does exactly what they describe it's just not a whole story or it won't be this inflammatory (or interesting at all).

    systemd-ssh-generator — Generator for binding a socket-activated SSH server to local AF_VSOCK and AF_UNIX sockets

    Tap for spoilerAlso why shouldn't things use kernel cmd? Is it taboo? Only good guys are allowed to use it, not bad horrible systemd?

    [–] MyBrainHurts@piefed.ca 6 points 2 weeks ago

    Heya thanks so much for that explanation, took a couple read throughs and some thinking but I think I get it!

    The time ans thought you put into that are much appreciated and so emblematic of the awesome nature of the linux world.

    Thanks again!

    [–] Infernal_pizza@lemmy.dbzer0.com 6 points 2 weeks ago (1 children)

    So systemd.autossh is running even if sshd.service is disabled?

    Given that it helps with ssh client connections and sshd is, basically, a server—yes. And even then, I imagine it doesn't actually do anything if there's no ssh connection.

    [–] chuso@fedia.io 0 points 2 weeks ago

    No, it seems you are a bit confused.

    You are talking about autossh, which is a completely different third-party SSH client tool that you have to install separately (as the link you shared describes) to have persistent SSH client connections and has nothing to do with systemd other than that you can start it as a systemd service (like any other third-party service).

    OP is talking about systemd-ssh-generator, which is described here by Lennart Poettering (author of systemd) as working exactly as OP described it.

    [–] kadu@scribe.disroot.org 41 points 2 weeks ago (2 children)

    it's nothing, don't worry kitten

    [–] Anarki_@lemmy.blahaj.zone 21 points 2 weeks ago* (last edited 2 weeks ago)
    [–] Anarki_@lemmy.blahaj.zone 12 points 2 weeks ago* (last edited 2 weeks ago)
    [–] allywilson@lemmy.ml 17 points 2 weeks ago* (last edited 2 weeks ago)

    Linux has always had a hard line disposition about keeping Kernel-space and User-space separate. SSHD (and systemd) are User-space, but are being configured on the kernel's boot line (in GRUB, which is also User-space).

    I don't like to use the term rage-bait, but this post is suggesting that User-space components should not be configured by the Kernel-space (which is not happening here, it's just the kernel boot line parameters, you could, pass the parameter to start a different init system other than systemd).

    [–] AyuTsukasa@lemmy.zip 12 points 2 weeks ago (1 children)

    I'm also a newb but from what I can tell it sounds like it's telling users to mess with system settings in a way that will fuck up a lot of things up if you don't know exactly what you're doing.

    [–] MyBrainHurts@piefed.ca 2 points 2 weeks ago

    telling users to mess with system settings in a way that will fuck up a lot of things up if you don’t know exactly what you’re doing.

    In my head, this is the subtext of much linux info.

    [–] PotatoesFall@discuss.tchncs.de 7 points 2 weeks ago* (last edited 2 weeks ago) (1 children)

    SSH (Secure SHell) is a protocol that allows remote shell access from other computers over network. It's quite secure, but not everybody may want sshd (SSH daemon) running in the background automatically.

    systemd, by far the most common init system (first program that the kernel runs, which starts and stops your other programs), however, does run it in the background automatically now.

    The way to disable this is neither through a simple command, nor configured in a simple config file somewhere in /etc/systemd/... , but instead in your boot options. Understandably, this feels dumb.

    It's not really something to worry about for average users.

    [–] PotatoesFall@discuss.tchncs.de 20 points 2 weeks ago (1 children)

    okay while typing this @thorhop@sopuli.xyz wrote a much better reply that also debunks the OP. Read that one

    [–] MyBrainHurts@piefed.ca 4 points 2 weeks ago

    I appreciate both your responses, really awesome stuff!

    Goddamn the linux community is good people.

    [–] TrickDacy@lemmy.world 21 points 2 weeks ago

    Cool, lies for luddites

    [–] Ascend910@lemmy.ml 10 points 2 weeks ago (1 children)

    I don't get the hate for systemd, it works well for me

    [–] kalpol@lemmy.ca 6 points 2 weeks ago (1 children)

    My main beef is that it keeps eating perfectly good system functions like logging. I liked my syslog files dang it. Yes I am aware I can change it back.

    But yeah it works OK. I dislike its monolithic system privilege paradigm

    [–] joyjoy@lemmy.zip 3 points 2 weeks ago

    I don't run Linux, I run SystemD.

    [–] Digit@lemmy.wtf 7 points 2 weeks ago (1 children)

    I'm still happier without systemd. Much less confusion and consternation.

    But if systemd's the init(++) system you want to use, enjoy. The other comments here are fun for systemd users (~ if you like that kind of thing and/or are masochistic).

    Yay for init-freedom. A joy to watch everybody get what they want. Systemd users get this kind of stuff that they want. People who don't want systemd don't get this kind of stuff that they don't want. Everybody's happy. No silly init-wars. :)

    [–] x0x7@lemmy.world 0 points 2 weeks ago (1 children)

    Me too. But people have to downvote you for being happy. OpenRC is so easy to script. I also like how because Artix has more than one option for an init system the init scripts are always in a seperate package. That lets me decided if I want the package injecting things into init or if I just want the software.

    [–] Digit@lemmy.wtf 1 points 2 weeks ago

    OpenRC in gentoo, runit in artix or void, my faves.

    I've yet to live with s6 and familiarise with it. Seemingly many very nice features.

    Dinit too, is on the edge of my radar.

    [–] RheumatoidArthritis@mander.xyz 4 points 2 weeks ago

    Woah, I thought it was satire about a hypothetical systemd version in 5 years. Then I saw the comments here.

    [–] possiblylinux127@lemmy.zip -2 points 2 weeks ago* (last edited 2 weeks ago)

    Ok old man

    Neckbeard material