• @ShortN0te@lemmy.ml
    link
    fedilink
    English
    41 year ago

    disable root login

    That does not do much in practice. When a user is compromised a simple alias put in the .bashrc can compromise the sudo password.

    Explicitly limit the user accounts that can login so that accidentally no test or service account with temporary credentials can login via ssh is the better recommendation.

      • @ShortN0te@lemmy.ml
        link
        fedilink
        English
        61 year ago

        guess a username and a password.

        Security by obscurity is no security. Use something like fail2ban to prevent brute force. When you use a secure password and or key this also does not matter much.

        • Midnight Wolf
          link
          fedilink
          English
          21 year ago

          Something something don’t let ‘good’ be the enemy of ‘perfect’