• foggy@lemmy.world
      link
      fedilink
      English
      arrow-up
      0
      ·
      7 months ago

      Yep. Use SSH keys, not just protocol.

      On connection, it’ll ask for your SSH password (this is different from the users password).

      After that with something like authelia in place, you’ll be asked for a 2fa code.

      • MaggiWuerze@feddit.de
        link
        fedilink
        English
        arrow-up
        0
        ·
        7 months ago

        So, no. SSH can’t do 2FA? I would need to set up Authelia and connect through that? I already use ssh keys instead of passwords to connect to my server

        • foggy@lemmy.world
          link
          fedilink
          English
          arrow-up
          0
          ·
          7 months ago

          Yes it can. I literally have it set up right now.

          When I connect to my vps I am promoted for the password for my SSH key. Only works on a machine that has the ssh key.

          Then I need to use 2fa.