After struggling with getting NoMachine NX 3.5 working on openSUSE 12.2 for several days, I've finally figured it out, and wanted to pass on what I've learned, to hopefully save others from the same torture. It's my way of giving back a little bit to the openSUSE community.
The symptom is that the install fails saying it can't authenticate user nx. Apparently, nxserver execs nxssh, which connects to the ssh server (sshd). In /var/log/messages there will be a message from sshd saying "Connection closed by 127.0.0.1 [preauth]".
Here's how I fixed it.
1. Log into the machine where you installed the nx server.
2. Edit the SSH server configuration file:
sudo vim /etc/ssh/sshd_config 3. Look for the line that starts with AuthorizedKeysFile. Edit the line to be:
AuthorizedKeysFile .ssh/authorized_keys2 Note the "2" at the end.
Save it.
4. Find the ID of the /usr/sbin/sshd process.
ps -ef | grep sshd
5. Send it a signal to re-read this config file:
sudo kill -HUP processID 6. Start the nxserver.
sudo /usr/NX/bin/nxserver --start If that doesn't work, then re-run the setup script.
sudo /usr/NX/scripts/setup/nxserver This also fixes a similar problem with NX 4.0. See this trouble report for more info:
NoMachine NX - Support: Trouble Report Hope this helps someone.
Greg Holmberg
No comments:
Post a Comment