歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux綜合 >> 學習Linux >> linux上使用google身份驗證器(簡版),linuxgoogle

linux上使用google身份驗證器(簡版),linuxgoogle

日期:2017/3/3 17:57:59   编辑:學習Linux

linux上使用google身份驗證器(簡版),linuxgoogle

linux上使用google身份驗證器(簡版),linuxgoogle


系統:centos6.6

下載google身份驗證包google-authenticator-master(其實只是一個.zip文件,在windwos下解壓,然後傳進linux)

#cd /data/google-authenticator-master/libpam

#yum install libtool –y (這個一定要裝了,要不下面安裝時會有報錯)

#cp Makefile.am Makefile.in (下面編譯安裝的時候需要這個文件)

#./bootstrap.sh

#./configure

#make && make install

#cp /data/google-authenticator/libpam/.libs/pam_google_authenticator.so /lib64/security/

#google-authenticator(生成的是root賬戶的密鑰,用手機google身份驗證器掃描,或者輸入賬戶和密鑰,會在手機上生成一個六位數的OTP碼)

http://xxxxxx/Linuxjc/1182902.html TechArticle

Copyright © Linux教程網 All Rights Reserved