apk add build-base linux-pam-dev openssl-dev
cd /tmp
curl -LO https://github.com/duosecurity/duo_unix/archive/refs/tags/duo_unix-1.12.0.tar.gz
tar xvfz duo_unix-1.12.0.tar.gz
cd duo_unix-1.12.0
./configure --with-pam --prefix=/usr
make
make install
- Login to Duo dashboard
- Add new Unix Application
- Edit
/etc/duo/login_duo.conf
andcat /etc/duo/login_duo.conf > /etc/duo/pam_duo.conf
- Test 2FA with
login_duo -f myusername 'echo "Hello World"'
- You should only see "Hello World" if the authentication succeeds.