xshell利用谷歌二次登录
yum -y install gcc make pam-devel libpng-devel libtool wget git
ll
cd
yum install mercurial
cd /ebsig/software/
git clone https://github.com/google/google-authenticator-libpam.git
cd google-authenticator-libpam/
ls
./bootstrap.sh
make
./configure
make
make install
cp /usr/local/lib/security/pam_google_authenticator.so /lib64/security/
vim /etc/pam.d/sshd
vim /etc/ssh/sshd_config
ChallengeResponseAuthentication yes #把no改为yes
service sshd restart
google-authenticator #运行该命令生成公钥和二维码
手机客户端扫描二维码或是输入公钥即可,然后以下一直选择y
配置xshell客户端
参考百度链接地址:http://jingyan.baidu.com/article/8ebacdf005f31149f75cd563.html
大家一起来学习