My Community Dashboard

  • Tyler Davis
    Tyler Davis started a new discussion, SSH Google 2FA Problems

    SSH Google 2FA Problems


    First off, sorry if this is the wrong section, I couldn't find one super applicable to this question...BUT:

    I'm working on setting up Google Authenticator 2FA for all SSH logins on my server, I started following a forum post here, but it seems like they've really simplified the process so I ended up following another, more generic CentOS post here. So far I've done the following:

    Installed google-authenticator.

    Setup the the app on my phone, and initiated google-authenticator.

    Modified /etc/pam.d/sshd with the line:

    Modified /etc/ssh/sshd_config to show:

    Restarted the sshd service.

    After that I completely exited ssh, and reconnected to it, trying both my root, and user account. Neither seems to have been impacted by anything I changed, at all. It simply has me login as normal. Does anyone have experience with this? Have you guys tried adding 2FA to your systems lately? Any help is much appreciated!