Enable Google Authenticator 2FA for SSH

1 min read
Enable Google Authenticator 2FA for SSH


$ sudo apt-get install libpam-google-authenticator


$ sudo apt-get install libqrencode3
$ wget http://ftp.us.debian.org/debian/pool/main/g/google-authenticator/libpam-google-authenticator_20191231-1_amd64.deb
$ sudo dpkg -i libpam-google-authenticator_20191231-1_amd64.deb


$ google-authenticator

$ sudo vi /etc/pam.d/sshd
Add to the bottom:
auth required pam_google_authenticator.so

$ sudo vi /etc/ssh/sshd_config
Set ChallengeResponseAuthentication yes

$ sudo /etc/init.d/ssh restart

email and domain security
Previous article

email and domain security

About SPF, DMARC and DNSSEC DMARC: Create a 14 Day trial account at https://dmarcian. Setup and get unique email addresses, create a DMARC TXT

Examining AVM FRITZ!Box firmware
Next article

Examining AVM FRITZ!Box firmware

Some steps too take a closer look to AVM's firmware $ mkdir ~/Firmware; cd ~/Firmware $ wget https://download.avm.de/fritzbox/fritzbox-7590/other/fritz.os/FRITZ.

Related Articles

Misc Linux tips and tricks
2 min read
Virtualbox PCI Passthrough Notes
1 min read

Virtualbox Admin

I run several machines on top of Virtual Box on Debian (headless). Here some notes I made... Install latest version

2 min read

Repair a non booting GRUB installation

Today I had to fix two issues with my computer not booting through grub bootloader. One of the reasons was

1 min read