Configure Google Authenticator with Ubuntu

Configure Google Authenticator with Ubuntu

sudo dpkg-reconfigure tzdata
sudo apt-get install ntpdate
sudo ntpdate
sudo apt-get install ntp

check settings via controls below

ntpq -p

Install google auth module

sudo apt-get install libpam-google-authenticator

choose user you want to configure auth for

su username

choose option Y

Do you want authentication tokens to be time-based (y/n)

scan barcode with google app or, follow instruction on the screen edit /etc/ssh/sshd_config and enable ChallengeResponseAuthentication to YES

ChallengeResponseAuthentication yes

edit /etc/pam.d/sshd and add below line at the top of the file

auth required nullok

restart ssh service

sudo service ssh restart

2017-01-23T11:36:10+00:00 January 19th, 2017|Linux, Security, Ubuntu|