google-authenticator - another way.




IF A SOURCE MAKE WAS DONE
==========================
cd /usr/local/src/GA/google-authenticator-master/libpam; make uninstall
find / -name "*google*auth*" -print |egrep -v src |xargs ls -ld 
rm -rf those pieces found

EPEL REPO REQUIRED
==================
yum repolist| egrep epel

OR
## THIS DID WORK EITHER
wget ftp.pbone.net/mirror/archive.fedoraproject.org/epel/7.2020-04-20/x86_64/Packages/g/google-authenticator-1.04-1.el7.x86_64.rpm
wget rpmfind.net/linux/epel/7/x86_64/Packages/g/google-authenticator-1.04-1.el7.x86_64.rpm


### 
### only needed on the machine the key was initianlly generated on
### /usr/bin/google-authenticator -e 10 -t -i "Binghamton(Linux)"  -s /var/tmp/$(whoami)_google_authenticator  -d -S 30 -r 1 -R 30 -w 1
###

yum install google-authenticator

scp bingnfsv.binghamton.edu:/root/.google_authenticator /root/.google_authenticator
chmod 400 /root/.google_authenticator

ls -l /etc/pam.d/sshd*
cp -rp /etc/pam.d/sshd /etc/pam.d/sshd.default

vi /etc/pam.d/sshd 
auth required  pam_google_authenticator.so nullok

vi /etc/ssh/sshd_config
ChallengeResponseAuthentication yes

systemctl restart sshd

 
yum install google-authenticator
=================================
bandoc1 
bandoc2 
banappt5
centostwo
jakester


banadmin -- /etc/pam.d/sshd



no epel repo
========================================================
banapp2.cc.binghamton.edu
banapp.cc.binghamton.edu
banappt2.cc.binghamton.edu
banappt.cc.binghamton.edu
baninb01.cc.binghamton.edu
baninb02.cc.binghamton.edu
baninb03.cc.binghamton.edu
baninbt.cc.binghamton.edu
budb.cc.binghamton.edu
budtdb.cc.binghamton.edu
mamappt.cc.binghamton.edu
mamdbdt.cc.binghamton.edu
maxapp.cc.binghamton.edu
maxappt.cc.binghamton.edu
maxdb.cc.binghamton.edu
orion.binghamton.edu
pinnwebdev.binghamton.edu
suspicion.binghamton.edu










Valid HTML 4.01!