• Possibly linux@lemmy.zip
    link
    fedilink
    English
    arrow-up
    3
    arrow-down
    3
    ·
    edit-2
    2 days ago

    Maybe it is time to move to something new

    Also why does sshd run as root. I deal like ssh could use some least privilege

    • frezik@midwest.social
      link
      fedilink
      arrow-up
      10
      ·
      edit-2
      2 days ago

      When you log in to an ssh terminal for a shell, it has to launch the shell process as the desired user. Needs to be root to do that.

      SSH has been around a long time. It’s not perfect, but it’s mostly validated. Anything new won’t have that history.

      • Possibly linux@lemmy.zip
        link
        fedilink
        English
        arrow-up
        1
        ·
        2 days ago

        Can’t it use built in OS mechanisms for that? Surely you could figure out a way to only give it permissions it needs. Maybe break it up into two separate processes.

    • Mio@feddit.nu
      link
      fedilink
      arrow-up
      1
      ·
      2 days ago

      Root because it use port 22. I think anything lower than port 1024 requires it. But if this is true, then you can try change the port it is listening to something higher than that.