Duo Security

Duo Security

Enabling two-factor authentication (2FA) on MidnightBSD for SSH.

There is a security/duo port in mports.

When setting up two-factor authentication, we recommend using the login duo setup. It's much easier to get going, and we noticed some segfaults with the duo pam module. Steps:

Duo also has instructions on setting up on FreeBSD and this works with MidnightBSD as well.

Login Duo

PAM

Using it when logging into ssh the first time, you'll get an activation link that you'll want to load in a browser. It will walk you through configuring your phone. You'll probably want the duo app installed so you can do push notifications.

After that, you'll see a menu asking if you want a push as you attempt to ssh into a box.