This KB explains how to disable the Multi-Factor Authorization (MFA) for admin (superuser). The situation is presented when for some reason the MFA is not received or scratch code was not saved, and the admin is not able to log in anymore. The MFA or One-time password (OTP) can be disabled over CLI access, using either PuTTY or console connection
This article assumes:
One of the popular programs to use to access the SonicWall SSH shell is PuTTY. It is either SSH over a terminal application or Console port connection with the following properties and then use a terminal application.
 NOTE: On Factory default settings, the default username is admin and the password is passwordÂ
The commands are the same for Gen7 and Gen6 SonicWall firewalls.
Login using admin credentials to CLI.
Using username 'admin'.Password:Â admin@C0EAE45BFEA6> configureconfig(C0EAE45BFEA6)# administration(config-administration)# no admin one-time-password(config-administration)# commit% Applying changes...% Status returned processing command:Â Â commit% Changes made.