Linux PAM + Google Authenticator not working

Andante

New Member
Apr 23, 2016
2
0
1
49
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