跳板机登录增加谷歌二次认证
Google Authenticator模块安装:
EPEL源安装: yum install libpam-google-authenticator
2.源码安装:
yuminstallmakegccpam-devel #cd/tmp #wgethttp://google-authenticator.googlecode.com/files/libpam-google-authenticator-1.0-source.tar.bz2 #bunzip2libpam-google-authenticator-1.0-source.tar.bz2 #tarxflibpam-google-authenticator-1.0-source.tar #cdlibpam-google-authenticator-1.0 #make gcc--std=gnu99-Wall-O2-g-fPIC-c-fvisibility=hidden-ogoogle-authenticator.ogoogle-authenticator.c gcc--std=gnu99-Wall-O2-g-fPIC-c-fvisibility=hidden-obase32.obase32.c gcc--std=gnu99-Wall-O2-g-fPIC-c-fvisibility=hidden-ohmac.ohmac.c gcc--std=gnu99-Wall-O2-g-fPIC-c-fvisibility=hidden-osha1.osha1.c gcc-g-ogoogle-authenticatorgoogle-authenticator.obase32.ohmac.osha1.o-ldl gcc--std=gnu99-Wall-O2-g-fPIC-c-fvisibility=hidden-opam_google_authenticator.opam_google_authenticator.c gcc-shared-g-opam_google_authenticator.sopam_google_authenticator.obase32.ohmac.osha1.o-lpam gcc--std=gnu99-Wall-O2-g-fPIC-c-fvisibility=hidden-odemo.odemo.c gcc-DDEMO--std=gnu99-Wall-O2-g-fPIC-c-fvisibility=hidden-opam_google_authenticator_demo.opam_google_authenticator.c gcc-g-rdynamic-odemodemo.opam_google_authenticator_demo.obase32.ohmac.osha1.o-ldl gcc-DTESTING--std=gnu99-Wall-O2-g-fPIC-c-fvisibility=hidden\ -opam_google_authenticator_testing.opam_google_authenticator.c gcc-shared-g-opam_google_authenticator_testing.sopam_google_authenticator_testing.obase32.ohmac.osha1.o-lpam gcc--std=gnu99-Wall-O2-g-fPIC-c-fvisibility=hidden-opam_google_authenticator_unittest.opam_google_authenticator_unittest.c gcc-g-rdynamic-opam_google_authenticator_unittestpam_google_authenticator_unittest.obase32.ohmac.osha1.o-lc-ldl #makeinstall cppam_google_authenticator.so/lib64/security cpgoogle-authenticator/usr/local/bin
本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/jisuanjixue/article-24622-5.html
但中上层人口会多生因为他们有足够的经济实力
祖宗留给我们的江海疆土绝不容侵犯