Today I had to reset Google Authenticator two step authentication for Synology Diskstation. I realised, that I wasn’t able to login into my Synology DS 212+ anymore.
The problem was, that my mobile phone had crashed before a view months and I had configured the Synology NAS to use the Google Authenticator for a two step authentication process for login. And the reset link didn’t work, because the DS wasn’t able to send emails (no idea why so far).
Solution to reset Google Authenticator two step authentication for Synology Diskstation 212+
Fortunately I had still shell access to the NAS. So I could simply login with a sudoers (administrative user).
Here are the steps I’ve taken:
First I had to log in into the Diskstation via SSH:
$> ssh -i .ssh/mykeys/id_rsa_ds firstname.lastname@example.org -p26
Afterwards I had to find the Google Authenticator preferences file:
$> sudo find /usr -name google_authenticator
What gave me something like that:
As you can see, the preferences file was found under /usr/syno/etc/preference/sheldon/google_authenticator.
Then I just remove the file with the following command:
$> rm /usr/syno/etc/preference/sheldon/google_authenticator
Reconfigure Google Authenticator for Synology Diskstation
Now I was able to go to the webinterface of my Synology Diskstation and log myself in as usual.
But instead of asking me for the verification code in step two, I got the screen to reconfigure Google Authenticator as shown below.
The QR-Code shown afterwards had to be scanned with the Google Authenticator app on my new mobile phone and finally I had to verify the process with a generated code from the app.
And last but not least I had to enter an email address for prospective resets 😀 to complete the whole process.
That’s it! Afterward I was redirected to my Synology Desktop. And now I’am able to login with two step authentication again.
No SSH access for Synology Diskstation
If you didn’t activate the terminal for your Synology Diskstation, you have to soft reset the box and reset only password and network settings as described here:
I found a video that helped me a lot to solve my problem and regain access to my Synology Diskstation DS 212+. It can be found unter https://www.youtube.com/watch?v=ROVuFokUs7o.