Unix/Linux · Installation
Unix/Linux PAM Adaptive Multi Factor Authentication
Install Spriv's PAM module to protect SSH, SU and SUDO authenticate once, then validate subsequent transactions continuously in the background.
Before you begin: the login user must already exist in Spriv's end-user list and be paired with a mobile device. Do not use
sudo when unzipping the installer.Sign up for a company account
See the Getting Started page.
Verify the user is paired
Confirm the login user exists in Spriv's end-user list and is paired with a mobile device.
Request the installer
Request the "Linux Adaptive PAM/SSH zip" via Spriv's contact page.
Copy the file to your server
pscp.exe Spriv-PAM-master.zip davidpino@192.169.137.155:/home/davidpino/Spriv-Pam-master.zipUnzip (without sudo)
unzip Spriv-Pam-master.zipMake the build script executable
chmod +x build_system.shRun the build script
./build_system.shConfigure
./configureBuild
makeInstall
sudo make installReview the install log
sudo cat config.logAdd your company key and secret
sudo vi /etc/spriv/pam.confConfigure the SSH daemon
sudo vi /etc/ssh/sshd_configUpdate PAM SSH rules
sudo vi /etc/pam.d/sshdmodule stacking is distro-specific.Enable SELinux boolean (as root)
setsebool -P authlogin_yubikey 1Restart SSH
Restart the SSH service the command varies by distribution.
Required sshd_config settings
Confirm before restarting SSH
UsePAMyesChallengeResponseAuthenticationyesUseDNSnoPubkeyAuthenticationyesPasswordAuthenticationno
Important: to avoid locking yourself out, leave your current session open and test the new configuration from a second connection before finalizing. PAM module stacking differs between Fedora 23/CentOS 7/6 and Ubuntu 15 check your distribution's requirements.
Back to: Windows MFA overview →
Was this helpful?