Knowledgebase

How to Enable Two-Factor Authentication (2FA) for SSH Login Print

  • 0

Add Google Authenticator TOTP codes on top of SSH keys for maximum server security.

Step-by-Step Instructions

  1. Install libpam-google-authenticator.
  2. Run google-authenticator and scan the QR code.
  3. Enable ChallengeResponseAuthentication in /etc/ssh/sshd_config.
sudo apt install -y libpam-google-authenticator
google-authenticator

Pro Tip: Always save your emergency scratch codes offline before enabling SSH 2FA.

Need assistance? Open a ticket in the A1 Client Area or contact our 24/7 NOC Engineering Team on WhatsApp at +1 (406) 229-9597.


Was this answer helpful?

« Back