Forum / NoMachine for Linux / NoMachine AcceptedAuthenticationMethods is not respected
Tagged: nomachine
- This topic has 3 replies, 3 voices, and was last updated 5 years, 6 months ago by
Britgirl.
-
AuthorPosts
-
April 14, 2020 at 08:07 #26693
agsharathParticipantHi 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.
April 14, 2020 at 13:52 #26712
GegaParticipantHello 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-April 14, 2020 at 17:12 #26720
agsharathParticipantHello, 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 graphical.target 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 multi-user.target
To change the current target without restarting, you can do sudo systemctl set-default multi-user.target
And thats it, nx should automatically start an x server and try to match client resolution if client is running in full screen mode!
April 20, 2020 at 10:16 #26907
BritgirlKeymasterHere are a couple of alternative ways to close the graphical session:
How to solve a black screen on headless machines
https://www.nomachine.com/AR03P00973TIP: installing Workstation avoids having to use any of these workarounds.
-
AuthorPosts
This topic was marked as solved, you can't post.
