Linux PAM + Google Authenticator not working

Andante

New Member
Apr 23, 2016
2
0
1
47
I have enabled OATH for Linux PAM authentication without adding a secret to my admin user.
After I found out i locked myself out of the web UI, I added a secret (generated by
oathkeygen) to my admin user in the following file:
/etc/pve/user.cfg
I have checked the date and time on both server and my phone but unfortunatly I am still getting the following error: Login failed. Please try again.

Is there any way I can disable OATH for Linux PAM via SSH?

I have referenced the following document:
https://pve.proxmox.com/wiki/Two-Factor_Authentication
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!