To mitigate the effort to maintain my personal server, I am considering to only expose ssh port to the outside and use its socks proxy to reach other services. is Portknocking enough to reduce surface of attack to the minimum?

  • dalz@fedi.alsd.eu
    link
    fedilink
    arrow-up
    4
    arrow-down
    11
    ·
    1 year ago

    Why disallow root login? I always need root when I connect, and stealing the password by aliasing sudo/doas is trivial. It seems to me it would just make life harder for no benefit.

    • this_is_router@feddit.de
      link
      fedilink
      English
      arrow-up
      32
      ·
      1 year ago

      Because then:

      • you also need to know the correct username
      • audits and logging shows which user used sudo to gain root access
    • NeoNachtwaechter@lemmy.world
      link
      fedilink
      English
      arrow-up
      7
      ·
      1 year ago

      Why disallow root login?

      It is very easy to throw a dictionary at your port 22. It happens every few minutes. And they all try it with the username=root unless they know something better.