Set up Nexus OTP as 2FA for SSH login on Linux
The plug-in modular nature of PAM is used to get a Linux server to use RADIUS to authenticate users connecting via SSH.
This article describes how to setup a CentOS server as RADIUS client and Digital Access as RADIUS server. The pam_radius_module is used to provide the mechanism of authenticating ssh logins.
This article also describes how to enable Nexus OTP in Smart ID Digital Access component as two-factor authentication method for SSH login on Linux, to replace static passwords.
Nexus OTP can be either Nexus TruID Synchronized or Smart ID Mobile App OTP, or any other OATH-based mobile OTP application, such as Google Authenticator or Microsoft Authenticator.
Nexus TruID is used as an example below and is available for iOS, Android, and Windows.
Configure Linux server
To build a radius client module for the CentOS Linux server, follow these instructions.