LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-09-2013, 10:10 AM   #1
swamprat
Member
 
Registered: Sep 2005
Location: New Jersey, USA
Distribution: VMware V12 and V15 in Windows 10, MX Linux 23.1, Kubuntu 23.10, IBM z/VM 5.4
Posts: 558

Rep: Reputation: 34
Problems Accessing FREENX Server


I'm trying to access my CentOS 6.4 Linux Server from my Windows-XP and my Windows 7
machines and having the issues indicated below. (Not both at the same time).

The NOMachine Client on the Windows machines is:
NX Client For Windows Ver. 3.4.0.7.

I'm running CentOS 6.4 and installed the FreeNX software, setup my user ID and it
appears that everything on the server is working. CentOS has all the latest updates
applied.

When I issue the 'nxserver --status' command the reply states that the server
is up and running.

I can ping the 192.168.1.90 address from anywhere on my LAN.

I can use TightVnc to access the Linux machine on port 22 and I can use Putty to
also access the Linux machine via port 22 so I know that SSH on port 22 is open
and active in CentOS.

On the Windows machines I see the following:

The NX Service is not available or the NX Access was Disabled on Host
192.168.1.90

The details of the message is:

NX> 203 NXSSH running with pid: 3468
NX> 285 Enabling check on switch command
NX> 285 Enabling skip of SSH config files
NX> 285 Setting the preferred NX options
NX> 200 Connected to address: 192.168.1.90 on port: 22
NX> 202 Authenticating user: nx
NX> 208 Using auth method: publickey
NX> 204 Authentication failed.

I have no idea where the user ID of NX is coming from as there isn't any such user
specified in the system.

Can anyone help me resolve this issue. Thanks
 
Old 11-09-2013, 10:43 AM   #2
swamprat
Member
 
Registered: Sep 2005
Location: New Jersey, USA
Distribution: VMware V12 and V15 in Windows 10, MX Linux 23.1, Kubuntu 23.10, IBM z/VM 5.4
Posts: 558

Original Poster
Rep: Reputation: 34
Update: I used the hostname in the configuration section of the logon and got the following:

NX> 203 NXSSH running with pid: 3368
NX> 285 Enabling check on switch command
NX> 285 Enabling skip of SSH config files
NX> 285 Setting the preferred NX options
nxssh: centos63.vuquest.com: no address associated with name

I got further then before but don't understand what this is indicating? Where can I enter an address?

Thanks
 
Old 11-09-2013, 11:28 AM   #3
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian, Arch
Posts: 2,331

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
Quote:
Originally Posted by swamprat View Post
NX> 202 Authenticating user: nx
NX> 208 Using auth method: publickey
NX> 204 Authentication failed.

I have no idea where the user ID of NX is coming from as there isn't any such user
specified in the system.
You better have an "nx" userid on your CentOS system. It most certainly will not work without this. That userid should have been created during the installation of the NX server.

Did you distribute the nx private key from your CentOS system to your Windows client? Judging by the error message above, it looks like you might have failed to do that. There is a default key that comes distributed with the NoMachine server and client. However, I do not remember if FreeNX includes this default key. For security reasons, you should not use the default key anyway. The documentation (from NoMachine) tells you how to create and distribute a new key.

I used to use FreeNX years ago. But now that NoMachine supplies free servers (they used to only supply free clients), I see no reason to use FreeNX anymore. I would recommend using NoMachine NX for both the server and the client. Does FreeNX create the nx userid automatically during installation of its server? I know that NoMachine server does this, as well as supplying a default key that works out of the box with their client, but I can't remember if FreeNX does so. It may be a seperate step you have to do manually with FreeNX.
 
Old 11-11-2013, 09:21 PM   #4
swamprat
Member
 
Registered: Sep 2005
Location: New Jersey, USA
Distribution: VMware V12 and V15 in Windows 10, MX Linux 23.1, Kubuntu 23.10, IBM z/VM 5.4
Posts: 558

Original Poster
Rep: Reputation: 34
After screwing around with this for two days and creating many variations of both the FreeNX server and the NX Server, Node and Client I finally came with the fix.

Don’t use the latest NX 4.0 client … it stinks. I went back and got the NX Client 3.5.0.9 which I’m using on all my windows machines…it works just fine, don’t need any to that fancy juke the NX people came up with.

Looks like their latest mato is “Let me make this more difficult so you will understand it”.

I’m using the FreeNX Server on my CentOS 6.4 machine.

So, go to the following URL and do exactly what they are saying and you are done.

Suggestion; Clean up all the old NX client code on the Windows Machine first…delete it all and edit the Windows registry and delete all NX* and NoMachine* items. Reboot and then download the NX Client 3.5.0.9 version.

Do exactly what they say in this URL and you should be a happy person.

***********************************************************************************

http://blog.code-head.com/the-nx-ser...isabled-centos

If you follow the instruction here:
http://wiki.centos.org/HowTos/FreeNX
You will get an error message from NX client:
The nx service is not available or the nx access was disabled
To fix this, connect to your SSH and type:
cat /var/lib/nxserver/home/.ssh/client.id_dsa.key
Copy the text you get and in your NX client, on your login dialog box go to:
Configure… > General Tab > Key
And paste the text there and you will be fine
On the Cut & Paste be sure to copy the entire key from the very top to the very bottom.
 
Old 11-11-2013, 10:11 PM   #5
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian, Arch
Posts: 2,331

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
Yes, NX 4 is totally different than NX 3. I don't know if NoMachine advertises backwards compatibility, but I wouldn't expect it. FreeNX definitely imitates the version 3 server. 3 is NoMachines free version. I believe their goal is for 4 to be a paid product, and they were just giving out beta tests or free samples of it right now. But I just went to their website and it is completely different than it was a few weeks ago. So maybe 4 is officially out now. I just glanced around the website briefly and I didn't see where they defined if 4 as free or paid. But I thought I remembered from the old website that 4 was going to be paid. Maybe I'm wrong about that though.
 
Old 11-11-2013, 10:15 PM   #6
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian, Arch
Posts: 2,331

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
Quote:
To fix this, connect to your SSH and type:
cat /var/lib/nxserver/home/.ssh/client.id_dsa.key
Copy the text you get and in your NX client, on your login dialog box go to:
Configure… > General Tab > Key
And paste the text there and you will be fine
This is exactly what I was referring to when in my first reply I said, "Did you distribute the nx private key from your CentOS system to your Windows client? Judging by the error message above, it looks like you might have failed to do that."

This step is covered in the NoMachine instructions. Probably in the FreeNX instructions as well, but I haven't used FreeNX in so long that I don't remember.

Glad you got it working. NX is really quite awesome. It's very stable and very fast.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
problems accessing a remote server using ssh or sftp lloowen Linux - Networking 22 05-05-2010 08:35 PM
Problems accessing server from a different machine areba Linux - Server 2 02-13-2007 10:26 AM
freenx server problems in suse 10.1 noorudin SUSE / openSUSE 1 12-03-2006 04:59 PM
Problems accessing my RH9 Apache web server from the URL! kman2045 Linux - Networking 7 01-10-2004 08:14 AM
Problems accessing server using ssh client. rmc Linux - Networking 1 12-12-2002 02:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration