安装google-authenticator实现动态密码
来源:互联网 发布:macbook windows f1 编辑:程序博客网 时间:2024/05/07 00:58
CentOS 6.5可以直接安装
1 、安装
yum install google-authenticator
注:如果没有找到,要安装epel-release源 ,yum install epel-release
或者YUM源安装
yum -y install mercurial pam-devel
安装Google Authenticator:
https://codeload.github.com/yangcvo/Google-Authenticator/zip/master
cd libpam-google-authenticator-1.0
make
make install
2、配置
SSH登录时调用google-authenticator模块,编辑:/etc/pam.d/sshd
第一行添加:
auth required pam_google_authenticator.so
vim /etc/ssh/sshd_config
添加或修改以下内容:
ChallengeResponseAuthentication yes
UsePAM yes
重启SSH:
/etc/init.d/sshd restart
3、生成
完成后可通过google-authenticator命令对当前用户创建随机密码,之后选项都选择yes即可;创建后在家目录下有个隐藏文件为.google-authenticator的文件,记住第一行私钥
4、下载
然后就可以在手机上安装google-authenticator客户端,通过输入私钥即可实时显示密码以后再远程登录的时候就会弹出验证码,而要输入客户端上实时产生的动态验证码才能进行登录;
通过给的URL https://www.google.com/chart?chs=200x200&chld=M|0&cht=qr&chl=oxxxauth://txxxxp/xxot@iZ2ze24xxxxxx4398xxxso1Z%3Fsecret%3DCxxxxxxxxxI
扫码
0 0
- 安装google-authenticator实现动态密码
- google authenticator 配置动态密码登录
- Google Authenticator 服务器端实现
- google-authenticator
- google-authenticator
- Google Authenticator
- Google Authenticator 原理及Java实现
- 使用google authenticator打造运维平台的动态口令
- Laravel5.2对接Google Authenticator实现二步认证
- Google Authenticator机制详解
- google authenticator 工作原理
- FreeRADIUS Google Dual Factor Authenticator
- 详解Google Authenticator工作原理
- 详解Google Authenticator工作原理
- Linux下使用Google Authenticator配置SSH登录动态验证码
- 使用google authenticator(谷歌身份验证器)打造用户登录动态口令
- mac 环境下 安装ga-cmd,命令行自动获取 google authenticator code
- 在rMBP上利用Python的onetimepass库实现Google Authenticator Application的效果
- inputfile(bootstrap)实现文件上传保存本地路径
- python字符串前缀 u和r的区别
- 三个python内置函数,帮你设计灵活性更强的for循环
- 如何在django中使用多个数据库
- Django 发生403 错误的原因
- 安装google-authenticator实现动态密码
- Django模型层Meta内部类详解
- python标准库 经典链接
- python的argparse模块add_argument详解
- 当pycharm不支持svn时,怎么处理(for windows)
- eclipse导入的jar包中包路径和类名与本地工程包路径类名冲突的解决办法
- python中如何用正则表达式匹配汉字
- zend studio vim插件安装
- driver.navigate().to()和driver.get()区别