NoMachine AcceptedAuthenticationMethods is not respected

Forum / NoMachine for Linux / NoMachine AcceptedAuthenticationMethods is not respected


Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #26693

    Hi guys,

    I am using AcceptedAuthenticationMethods NX-private in my config file, and I have restarted the system but I am still able to login through password. The software design is very bad. You should provide an example config file with all possible keys to make it easy for the user. The directories are all non standard.

    Please let me know how to fix. The server is NoMachine 6 on Ubuntu 18.04 on Amazon AWS EC2 instance. Client is also ubuntu.


    Hello agsharath,

    Did you uncomment line with AcceptedAuthenticationMethods? Line should look like this:
    AcceptedAuthenticationMethods NX-private-key
    If it’s already that way, than please show us your log file /usr/NX/var/log/nxserver.log. You can submit it by sending it to forum[at]nomachine[dot]com-


    Hello, now it is working with the fix that you have mentioned. Thank you very much.

    Btw, I was struggling for two days to get the proper resolution 1920×1080 on ubuntu AWS. I want to post the fix here so that it is helpful to someone else: Thanks for the great software.

    For full hd resolution on aws, the key idea is that there should be no x server running already on the machine. If there is no x server, then nx will create its own, and by default try to match the client resolution, which is what we want. Unfortunately, when we install gnome desktop, gnome automatically changes the systemd runlevel to which means systemd will spawn gdm and an xserver, which you can verify by a process called /usr/lib/xorg/Xorg (hope you dont get into wayland and all that nonsense). So we have to change the default systemd target to boot into shell mode instead of graphical mode, which can be done by sudo systemctl set-default

    To change the current target without restarting, you can do sudo systemctl set-default

    And thats it, nx should automatically start an x server and try to match client resolution if client is running in full screen mode!


    Here are a couple of alternative ways to close the graphical session:

    How to solve a black screen on headless machines

    TIP: installing Workstation avoids having to use any of these workarounds.

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

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