Enable Google Authenticator 2FA for SSH


1 min read
Enable Google Authenticator 2FA for SSH

Ubuntu:

$ sudo apt-get install libpam-google-authenticator

Debian:

$ 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

Configure:

$ 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

Some notes regarding exposing a PCI card inside a Virtualbox VM Determine PCI ID on host: vbox@vbox:~$ lspci|grep

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

Installing ARCH Linux

In my quest to find a modern Linux distribution which could run both Gambas2 and Gambas3 I stumbled upon ARCH

1 min read

GO TOP