Passwords get stolen. Phishing, data breaches, someone looking over your shoulder - it happens. Two-Factor Authentication (2FA) means that even if someone has your password, they still can’t log in without your phone.

Secure your account with two-factor authentication

Client Area (cp.gozenhost.com)

  1. Log into the client area
  2. Click your name (top right) → Security Settings
  3. Under Two-Factor Authentication, click Enable
  4. Open your authenticator app:
  5. Scan the QR code
  6. Enter the 6-digit code to confirm
  7. Save your backup code somewhere safe

cPanel

  1. Log into cPanel
  2. Go to SecurityTwo-Factor Authentication
  3. Scan the QR code with your authenticator app
  4. Enter the 6-digit code
  5. Click Configure Two-Factor Authentication

From now on, cPanel will ask for a code after your password on every login.

SSH (VPS / Cloud)

For VPS servers, you can add 2FA to SSH logins using Google Authenticator PAM:

Run the setup:

  google-authenticator
  

Answer the prompts:

PromptRecommended Answer
Time-based tokens?y
Update .google_authenticator file?y
Disallow multiple uses?y
Increase time window?n
Rate limiting?y

Scan the QR code with your authenticator app and save the emergency scratch codes.

Configure PAM

  sudo nano /etc/pam.d/sshd
  

Add this line at the top:

  auth required pam_google_authenticator.so
  

Configure SSHD

  sudo nano /etc/ssh/sshd_config
  

Set:

  ChallengeResponseAuthentication yes
  

If you use SSH keys and want 2FA:

  AuthenticationMethods publickey,keyboard-interactive
  

Restart SSH:

  sudo systemctl restart sshd
  

Which Authenticator App?

AppMulti-DeviceCloud BackupFree
Google Authenticator
Authy
1PasswordPaid
Bitwarden✓ (Premium for TOTP)

What to Do Next

Last updated 05 Apr 2026, 00:00 +0200. history

Was this page helpful?