My dear friend... I was excited about this document as everyone used it and it works but unfortunately that doesn't work for me...
Im still getting the "The NX Service is not available or the NX access was disable on your local host"
NX> 203 NXSSH running with pid: 3668
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: 127.0.0.1 on port: 443
NX> 202 Authenticating user: nx
NX> 208 Using auth method: publickey
NX> 204 Authentication failed.
Could someone please help me??
Thanks a lot fellows!
The solution posted on the site worked for me:
http://www.linuxquestions.org/questi...roblem-930551/
cd /usr/NX/home/nx/.ssh
ln -s authorized_keys2 authorized_keys
I'm running opensuse 12.2 with NX Server 3.5.0-11
NXSFE has a limit of 2 sessions per server. Why don't you use FreeNX, which doesn't have this limit.
easy installation guide, but read carefully!!
Ubuntu installation:
https://help.ubuntu.com/community/FreeNX
Debian installation:
http://wiki.debian.org/freenx
Excellent with the guide, but to solve the same problem I just did: ( with explanation from the man file below).
As root: try the following
nxserver --keygen
--keygen
Generate a new pair of SSH keys. After running this procedure, the
NX clients will use the key: /usr/NX/share/keys/default.id_dsa.key
to connect to this NX server.
nxserver --keyrestore
--keyrestore
Restore the SSH key-pair provided with the server package. Current
public key will be moved to default.id_dsa.pub.backup file, private
key will be moved to /usr/NX/share/keys/default.id_dsa.key.backup
file.
nxserver --usercheck myusername
--usercheck USERNAME
Check the status of the specified user and add the public key for SSH
authentication to the user's authorized keys file.
When I did this authentication worked again
After spending almost a day on this, I gave up and went back to Nomachine nx 3.5 (this problem occurred exact the same way as OP described for preview 4). Hope NoMachine gets a chance to iron out any incompatibilities with 12.10 before the preview period for 4 ends.
I'm a Arch user and I just wasted 2 hours to try to understand all this stuff. But, as I expected, the solution is quite simple and is given on this page: http://www.nomachine.com/ar/view.php?ar_id=AR10B00046
And, make sure than:
- you have your public key (on the server) in /usr/NX/home/nx/.ssh/authorized_keys
- you can connect to your server with: ssh nx@server (use -v to have some debug output if you can't connect to try to understand why)
If you can, you should be able to connect with the NX client.
Good luck.
Well, after 30 min again to refix authentification, I removed this of the NX public key (/usr/NX/home/nx/.ssh/authorized_keys) to make the stuff working.
no-port-forwarding,no-agent-forwarding,command="/usr/NX/bin/nxnode
Last edited by cr0cK; January 6th, 2013 at 01:57 AM.
Great work!!!!
Thank you very much!
Guys, after doing everything in this document, I got the farthest yet. But, using a Windows client to connect to NX server 3.5 running on CentOS 6.4 (I know, not Ubuntu, but this post was the only one that could get me remotely close to solving my problem after 4 days, hence the reply), I still get error messages. It still won't work. I need this to work from Windows 7 machines specifically, and need the GUI in linux to do some specific stuff, so any help specific to NX will be much appreciated. First, here is the error in client side:
NX> 203 NXSSH running with pid: 3664
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.137.70 on port: 22
NX> 202 Authenticating user: nx
NX> 208 Using auth method: publickey
HELLO NXSERVER - Version 3.5.0-11 - LFE
NX> 105 Hello NXCLIENT - Version 3.5.0
NX> 134 Accepted protocol: 3.5.0
NX> 105 Set shell_mode: shell
NX> 105 Set auth_mode: password
NX> 105 Login
NX> 101 User: Hans
NX> 102 Password: ******
NX> 103 Welcome to: centosoefen user: Hans
NX> 105 Listsession --user="Hans" --status="suspended\054running" --geometry="1920x1080x32+render" --type="unix-gnome"
NX> 127 Available sessions:
Display Type Session ID Options Depth Screen Status Session Name
------- ---------------- -------------------------------- -------- ----- -------------- ----------- ------------------------------
NX> 148 Server capacity: not reached for user: Hans
NX> 105 Start session with: --link="wan" --backingstore="1" --encryption="1" --cache="16M" --images="64M" --shmem="1" --shpix="1" --strict="0" --composite="1" --media="0" --session="CentOSHome" --type="unix-gnome" --geometry="1914x1022" --client="winnt" --keyboard="pc102\057en_US" --screeninfo="1914x1022x32+render"
NX> 595 ERROR: A fatal error occurred in NX Server.
NX> 595 ERROR: The exception id is: B76E8FB5. To get detailed information about
NX> 595 ERROR: the error search for the string B76E8FB5 in the system log
NX> 595 ERROR: file (usually '/var/log/messages').
NX> 500 ERROR: Last operation failed.
NX> 280 Exiting on signal: 15
Checking /var/log/messages I got the following:
[root@centosoefen ~]# cat /var/log/messages | grep B76E8FB5
Jun 3 21:53:57 centosoefen NXSERVER-3.5.0-11[6639]: ERROR: (exception id B76E8FB5) Failed to add the host to the list of known hosts (/usr/NX/home/nx/.ssh/known_hosts).#015
Jun 3 21:53:57 centosoefen NXSERVER-3.5.0-11[6639]: ERROR: (exception id B76E8FB5) NX> 596 ERROR: NXNODE Ver. 3.5.0-9 (Error id e7F7188)
Jun 3 21:53:57 centosoefen NXSERVER-3.5.0-11[6639]: ERROR: (exception id B76E8FB5) NX> 596 ERROR: create session: run commands
Jun 3 21:53:57 centosoefen NXSERVER-3.5.0-11[6639]: ERROR: (exception id B76E8FB5) NX> 596 ERROR: execution of last command failed
Jun 3 21:53:57 centosoefen NXSERVER-3.5.0-11[6639]: ERROR: (exception id B76E8FB5) NX> 596 last command: /usr/bin/xauth -v -f /home/Hans/.nx/C-centosoefen-1001-09F550CF05BE1F30EACAEC2DC9141C7C/authority source /home/Hans/.nx/C-centosoefen-1001-09F550CF05BE1F30EACAEC2DC9141C7C/scripts/authority
Jun 3 21:53:57 centosoefen NXSERVER-3.5.0-11[6639]: ERROR: (exception id B76E8FB5) NX> 596 exit value: 1
Jun 3 21:53:57 centosoefen NXSERVER-3.5.0-11[6639]: ERROR: (exception id B76E8FB5) NX> 596 stdout: Using authority file /home/Hans/.nx/C-centosoefen-1001-09F550CF05BE1F30EACAEC2DC9141C7C/authority
Jun 3 21:53:57 centosoefen NXSERVER-3.5.0-11[6639]: ERROR: (exception id B76E8FB5) NX> 596 Writing authority file /home/Hans/.nx/C-centosoefen-1001-09F550CF05BE1F30EACAEC2DC9141C7C/authority
Jun 3 21:53:57 centosoefen NXSERVER-3.5.0-11[6639]: ERROR: (exception id B76E8FB5) NX> 596 stderr: /usr/bin/xauth: creating new authority file /home/Hans/.nx/C-centosoefen-1001-09F550CF05BE1F30EACAEC2DC9141C7C/authority
Jun 3 21:53:57 centosoefen NXSERVER-3.5.0-11[6639]: ERROR: (exception id B76E8FB5) NX> 596 /usr/bin/xauth: /home/Hans/.nx/C-centosoefen-1001-09F550CF05BE1F30EACAEC2DC9141C7C/scripts/authority:3: bad display name "centosoefen:1001" in "add" command
Jun 3 21:53:57 centosoefen NXSERVER-3.5.0-11[6639]: ERROR: (exception id B76E8FB5) NX> 596 init: stdin arguments: user=Hans,userip=192%2e168%2e137%2e1,uniqueid=09F5 50CF05BE1F30EACAEC2DC9141C7C,display=1001,node_num ber=0,server_name=centosoefen,license=%28None%29,s ubscriptionid=None,productid=LFE,reconnect=1,balan ce_host=192%2e168%2e137%2e70,encryption_mode=3,con nection=local,images=64M,cache=16M,client=winnt,me dia=0,backingstore=1,encryption=1,strict=0,clipboa rd=both,shpix=1,rootless=0,composite=1,session=Cen tOSHome,shmem=1,type=unix%2dgnome,virtualdesktop=1 ,screeninfo=1914x1022x32%2brender,keyboard=pc102%2 fen_US,geometry=1914x1022,link=wan
Jun 3 21:53:57 centosoefen NXSERVER-3.5.0-11[6639]: ERROR: (exception id B76E8FB5) NXNodeExec::exec('startsession', 'user=Hans&userip=192%2e168%2e137%2e1&uniqueid=09F 550CF05BE1F30EA...', 'localhost', 22) called at handlers/nxserver.pl line 3582
Jun 3 21:53:57 centosoefen NXSERVER-3.5.0-11[6639]: ERROR: (exception id B76E8FB5) NXShell::handler_session_start('--link="wan" --backingstore="1" --encryption="1" --cache="16M" -...') called at NXShell.pm line 373
Jun 3 21:53:57 centosoefen NXSERVER-3.5.0-11[6639]: ERROR: (exception id B76E8FB5) NXShell::handle_command('startsession', '--link="wan" --backingstore="1" --encryption="1" --cache="16M" -...') called at NXShell.pm line 145
Jun 3 21:53:57 centosoefen NXSERVER-3.5.0-11[6639]: ERROR: (exception id B76E8FB5) NXShell::run() called at nxserver.pl line 4497
Jun 3 21:53:57 centosoefen NXSERVER-3.5.0-11[6639]: ERROR: (exception id B76E8FB5) eval {...} called at nxserver.pl line 4456
Please bare in mind that I am a total newbie to Linux, and a very stubborn Windows user
Any help guys?
Last edited by Luckyfriend22; June 3rd, 2013 at 09:06 PM.
Bookmarks