Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 26

Thread: NX Client Authentication failed

  1. #11
    Join Date
    Mar 2012
    Beans
    1

    Re: NX Client Authentication failed

    Thanks!!! After hours of attempting to install NX, I came across your document and NX is working now. Also, I am running this on MINT.



    Quote Originally Posted by chon View Post
    Hi all.

    After several attempts at trying to get NX up-and-running I was finally able to do it. To help others like me who struggled to do this I wrote up a "NoMachine NX Installation Guide v1.0" document in an attempt to help others. Please feel free to edit this document to improve on it.

    If you have any questions please let me know and I'll do what I can to help. Also, please let me know if this was helpful to you.

    Chon

  2. #12
    Join Date
    Apr 2008
    Beans
    1

    Re: NX Client Authentication failed

    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!

  3. #13
    Join Date
    Oct 2012
    Beans
    1

    Re: NX Client Authentication failed

    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

  4. #14
    Join Date
    Oct 2012
    Beans
    1

    Re: NX Client Authentication failed

    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

  5. #15
    Join Date
    Nov 2012
    Beans
    1

    Smile Re: NX Client Authentication failed

    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

  6. #16
    Join Date
    May 2005
    Beans
    35

    Re: NX Client Authentication failed

    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.

  7. #17
    Join Date
    Jul 2010
    Beans
    3

    Re: NX Client Authentication failed

    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.

  8. #18
    Join Date
    Jul 2010
    Beans
    3

    Re: NX Client Authentication failed

    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.

  9. #19
    Join Date
    Mar 2013
    Beans
    1

    Re: NX Client Authentication failed

    Great work!!!!

    Thank you very much!

  10. #20
    Join Date
    Jun 2013
    Beans
    2

    Re: NX Client Authentication failed

    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.

Page 2 of 3 FirstFirst 123 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •