Colourful Norwich skyline illustration

Michael Sage

IT, Digital & Culture

Duo ByPass

To bypass duo 2fa for a script or secure login etc on Linux you simply need to add the following to your SSHD PAM config (/etc/pam.d/sshd)

auth    [success=2 default=ignore] accessfile=/etc/security/access-local.conf

You will then need to create the access file and put your rules in for example

+ : ALL :
- : ALL : ALL

For information on the access file, see here