How to setup SSH key authentication and two-factor authentication on Linux for remote login This how to walks you through setting up both two-factor authentication and SSH key authentication for a rock-solid remote login of your Linux servers.