Linux Babe published a tutorial about setting up SSH two-factor authentication (2FA) on Ubuntu Server.
Set Up SSH Two Factor Authentication (2FA) on Ubuntu Server
This tutorial will show you how to set up two factor authentication (2FA) on Ubuntu server. Public key authentication with a one-time password (Google Authenticator)
Set Up SSH Two Factor Authentication (2FA) on Ubuntu Server