• doughless@lemmy.world
    link
    fedilink
    arrow-up
    7
    ·
    18 days ago

    ssh allows you to add trusted public key. When you ssh from a computer that has the private key, it will immediately log you in without asking for your password.

      • Fontasia@feddit.nlOP
        link
        fedilink
        arrow-up
        3
        ·
        17 days ago

        Overly basically, it’s a file based way to prove you can log into an account

        There is information in file that the computer can verify that you created the certificate on this computer while already having access to this account, therefore you are allowed access.

        In most contexts, digital certificates are considered more secure than a password for authentication, so in creating one, it’s a pretty typical thing to disable being able to log in with a password. However, this bug allows account access with a garbage password.

        • Carl@anarchist.nexus
          link
          fedilink
          English
          arrow-up
          4
          ·
          18 days ago

          No, there was an SSH vulnerability discovered a day or two ago, which allows anyone to bypass the certificate check during authentication. So if your SSH is configured to only use a certificate, (not cert and password) then anyone can log into your shit.

            • Carl@anarchist.nexus
              link
              fedilink
              English
              arrow-up
              2
              ·
              18 days ago

              Yes, it specifically affects the OpenSSH/Alpine/musl interaction. It’s a vulnerability in how Alpine/OpenSSH interfaces with musl, and allows anyone who can reach your SSH port to instantly log into a passwordless account by entering over 256 characters into the password field.

              The vuln is nicknamed *sshole, if you want to search it. Because it only works on passwordless accounts, (meaning it has a * in the password field). And the most common use-case for passwordless accounts is because you’re using cert-based authentication instead. Thus the warnings that if you’re using cert-only SSH, you’re most likely vulnerable.

          • ozymandias117@lemmy.world
            link
            fedilink
            English
            arrow-up
            1
            ·
            15 days ago

            It requires PasswordAuthentication yes

            If you’re using key or cert based login, I’d hope you disabled password login completely