Created
October 8, 2013 07:59
-
-
Save gvangool/6881190 to your computer and use it in GitHub Desktop.
Install the Yubikey PAM modules
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
yum install git -y | |
yum install gcc {auto,}make autoconf libtool -y | |
yum install {,lib}curl {lib{curl,usb},pam}-devel -y | |
cd /usr/src | |
git clone git://github.com/Yubico/yubico-pam.git | |
git clone git://github.com/Yubico/yubico-c.git | |
git clone git://github.com/Yubico/yubico-c-client.git | |
git clone git://github.com/Yubico/yubikey-personalization.git | |
cd /usr/src/yubico-c | |
autoreconf --install && ./configure && make && make install | |
cd /usr/src/yubico-c-client | |
autoreconf --install && ./configure && make && make install | |
cd /usr/src/yubikey-personalization | |
git checkout fd4d73e69c51422e3991ead828804129a701d0d | |
autoreconf --install && ./configure && make && make install | |
cd /usr/src/yubico-pam | |
autoreconf --install | |
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/:$PKG_CONFIG_PATH ./configure --without-ldap | |
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/:$PKG_CONFIG_PATH make && make install | |
mv /usr/local/lib/security/pam_yubico.{so,la} /lib64/security/ | |
cd /etc/pam.d | |
vim sshd system-auth{,-ac} common-auth |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment