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:
You have admin access to SonicWall, in other words, you have the login credentials to the SonicWall firewall
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.
Bits per second: 11520
Data bits: 8
Stop bits: 1
Flow control: None
NOTE:OnFactory default settings, the default username isadminand the password ispassword
The commands are the same for Gen7 and Gen6 SonicWall firewalls.
Login using admin credentials to CLI.
Using username 'admin'.
(config-administration)# no admin one-time-password
% Applying changes...
% Status returned processing command:
% Changes made.
With the above commands, one-time password is disabled and GUI login will not ask for OTP or MFA anymore.