SSH key auth and google MFA

Forum / NoMachine for Linux / SSH key auth and google MFA

  • This topic has 1 reply, 2 voices, and was last updated 1 year ago by Cato.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #44875
    mcxmark
    Participant

    Hi,

    I would like to get NoMachine working with SSHKey and google-authenticator, but it seems like nxserver is not reading/etc/pam.d/nx when authenticating using key authentication.

    Verification code is being asked when trying to login using ssh, but not when connecting from Windows to RHEL8 (GNOME).

    I added the following line to /etc/pam.d/nx end of file:

    auth       required      pam_google_authenticator.so

     

    Key authentication works perfectly, but not when I want to add MFA.

    Anyone tips or suggestions?

     

    Thanks.

    #44896
    Cato
    Participant

    Hello mcxmar,

    With NX protocol it’s only possible to perform PAM-based two-factor authentication. This means that you can only combine authentication methods supported by PAM modules, usually password + authentication code. Here is an article providing examples of two-factor configuration for NX protocol: https://kb.nomachine.com/AR12L00828

Viewing 2 posts - 1 through 2 (of 2 total)

This topic was marked as solved, you can't post.