Synology reset Two-Factor Authentication

Synology reset 2FA with SSH enabled

Synology reset 2FA explains how to reset 2FA when SSH is still enabled. The commando’s are run via a terminal session and SSH has to be enabled on the Synology NAS server. In case there is only one administrator on the NAS to reset 2FA and this user has exceeded all standard 5 emergency codes then it is still possible to reset 2FA when SSH is turned on.

Synology terminal session

You have to make sure that SSH is enabled on the Synology NAS. This can be done from the control panel under Terminal & SNMP. For Windows you can use PuTTY to connect via SSH.

Terminal command:

ssh <admin user>@server

sudo -i

cd /usr/syno/etc/preference/

choose the user which 2FA you want to reset.

cd <user>

rm google_authenticator