Skip to main content
ispcolohost
New Member
February 9, 2017
Question

Two-Factor for SSH?

  • February 9, 2017
  • 1 reply
  • 8310 views

Hello, if an admin account has two factor enabled, it appears to only apply to https access, but not SSH.  I just enabled it for myself, was able to log out and back in via https, it required the token as expected.  I SSH in, and I'm in without two factor; was hoping it would authenticate me via SSH first, then require my two factor before actually completing the login.  Is that not available?

    1 reply

    Kenundrum
    New Member
    February 10, 2017

    I just tried this on a box running 5.2.10 and it works as expected. I get a password prompt and then a prompt for "Email Token". Do you have any more details on the setup such as the type of 2 factor and what version it's running on?

    MikePruett
    New Member
    February 10, 2017

    Yeah, CLI should require 2FA as well depending on the type of 2FA you are running. I know for a fact if you are getting a token emailed or texted to you that the CLI will prompt you for the code when using SSH.