InMotion Hosting Support Center

Everyone wants their account to be as secure as possible, even with using a random strong password your account can still be hacked. Two Factor Authentication provides an extra step to access your cPanel account. In this guide we will be discussing how to set up, configure, and use the Two Step Authentication option provided within Web Host Manager (WHM). The option must be enabled in WHM before it can be activated in the cPanel account.

Two factor authentication requires that you have root access to your server. The Google Authentication app must also be installed on your mobile device.

  1. Log into your WHM as the root user.
  2. Search for 2 factor Use the search bar to find Two-Factor Authentication. You can also search for "2fa" for short.
  3. enable two-factor authentication Click the on and off button to enable Two-Factor Authentication Security Policy.
  4. Name the issuer for your settings Next you will need to click on Settings in order to give name to the issuer for two-factor authentication. By default, it is set to your server name. This name is used to identify the code used within the Google Authenticator app. If you are using the app for several authentications, this name distinguishes your server so that you know what code to use when you need to login to cPanel.

At this point, in order to enable two-factor authentication for a cPanel account you will need to login to the cPanel account where you wish to use two-factor authentication. You will need to go to the Security section and click on the Two-Factor Authentication icon. Follow the procedure below in order to activate two-factor authentication for a cPanel account.

cPanel Two-Factor authentication utilizes the Google Authentication app. At this point you will need to have the application loaded and working on your mobile device. Note that when you have two-factor authentication enabled, the mobile device will be required to login.

  1. Configure two-factor authentication in cPanel Click on the Two-Factor Authentication icon in cPanel.
  2. Click button to setup 2-factor authentication Click on the button that is labeled Configure Two-Factor Authentication. You will see a QR code appear on the screen. You will need your mobile device with the Google Authentication app for next 2 steps. The Google Authentication application uses the camera on your mobile device in order to view the QR code. If your device cannot read the QR code, then you can use the manual code provided below the QR code. Click on Manual entry in order to enter the provided key.
  3. Scan QR code If you can scan the QR code with your device, then click on Scan barcode.
  4. type in 6-digit code Once you scan the QR code you will get a code that will only show for a short period of time. Go down the screen to Step 2 and type in the 6-digit code.

Once the code is entered you will see a message that says "Success: Two-factor authentication is now configured on your account." At this point, if you log out of the cPanel, you will be required to enter your normal cPanel password and then use the Google authentication app to provide the code to login cPanel as per the screenshot below:

Login screen after cPanel password

Support Center Login

Social Media Login

Social Login Joomla

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question
n/a Points
2016-03-08 11:57 am

Can you configure a backup phone number for this?

9,466 Points
2016-03-08 12:02 pm
Thank you for your question. I'm not sure what you mean by backup phone number? Do you mean you want to authenticate with a phone in general? Or, do you want to use a backup phone number?
n/a Points
2016-04-14 8:51 am

I'm very interested in this except I want to be sure there is a way to specify an alternate phone number in case something happens to me or my phone. This is a problem that I don't see a current solution for.

29,747 Points
2016-04-14 1:38 pm
Hello Frank,

Thank you for contacting us. "If you're having trouble signing in with your primary phone, you can always have a verification code sent to your backup phone..." here is the guide.

Thank you,
n/a Points
2016-04-15 9:59 am

I see, it isn't cPanel that controls the authentication, it is the authenticator... Great!

So is it now possible to include WHM? I found this:

10,077 Points
2016-04-15 10:30 am
Hello Frank,

If you are on a VPS+ account then yes you could add that plugin to your WHM.

Best Regards,
TJ Edens
n/a Points
2016-04-15 9:29 pm

Thanks! Will do!

n/a Points
2016-06-10 9:20 pm

Can you please activate this on a Reseller account on request?

I want me customers to be able to enable on their cPanel to enhance the security of their websites.


43,761 Points
2016-06-13 1:11 pm
Unfortunately, this is not available on the reseller servers. To do this requires root access on a VPS or Dedicated server.
n/a Points
2016-12-10 7:55 pm

Is this feature available for shared hosting customers, or only those with VPS? If that is the case, why compromise the security of those who pay less? Hoping I can connect with a sys admin to get this set up on my shared account. Thanks!

43,761 Points
2016-12-12 3:28 pm
This feature is a third party plugin that requires root access in order to install. It is a plugin that can be installed onto any VPS and Dedicated server with root access.
n/a Points
2017-03-13 2:47 pm

This article desperately needs an update. This package requires the deprecated, which is no longer available in newer cPanle/WHM installs.

Post a Comment

Email Address:
Phone Number:

Please note: Your name and comment will be displayed, but we will not show your email address.

12 Questions & Comments

Post a comment

Back to first comment | top

Need more Help?


Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail:
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!