NoMachine logo
  • PRODUCTS
    • NoMachine for Everybody
      • NoMachine Free Edition
      • Show me how to start
    • NoMachine for the Enterprise
      • NoMachine Enterprise Desktop Products
        • NoMachine Enterprise Desktop
      • NoMachine Terminal Server Products
        • NoMachine Workstation
        • NoMachine Small Business Terminal Server
        • NoMachine Terminal Server
        • NoMachine Enterprise Terminal Server
        • NoMachine Enterprise Terminal Server Cluster
      • NoMachine Cloud Server Products
        • NoMachine Small Business Cloud Server
        • NoMachine Cloud Server
        • NoMachine Enterprise Cloud Server
        • NoMachine Enterprise Cloud Server Cluster
  • DOWNLOAD
    • Download the Software
      • NoMachine for Windows
      • NoMachine for Mac
      • NoMachine for Linux
      • NoMachine for iOS
      • NoMachine for Android
      • NoMachine for Raspberry
      • NoMachine for ARM
      • NoMachine Enterprise Products Evaluation
  • SUPPORT
    • Get Support
    • Forum
    • Documents and Tutorials
    • Frequently Asked Questions
    • Knowledge Base
    • Customer Center
    • Report an issue
  • PARTNERS
    • Find a Partner
    • Technology Partners
    • Solution Providers
    • Become a partner
  • STORE
    • Buy Online
message logo Home / 

Forum / NoMachine for Linux / Cannot login with key using nx protocol

logo forum list
logo forum list

All Forums

Login to the forum
register iconRegister to the forum
logo forum list
logo login list
logo forum list
logo forum list
logo NoMachine-for-Windows NoMachine for Windows  (1368)
logo NoMachine-for-Mobile NoMachine for Mobile  (167)
logo NoMachine-for-ARM NoMachine for ARM  (43)
logo NoMachine-for-Mac NoMachine for Mac  (734)
logo NoMachine-Cloud-Server-Products NoMachine Cloud Server Products  (188)
logo NoMachine-for-Raspberry-Pi NoMachine for Raspberry Pi  (74)
logo NoMachine-for-Linux NoMachine for Linux  (2265)
logo NoMachine-Terminal-Server-Products NoMachine Terminal Server Products  (230)
logo General-Discussions General Discussions  (500)

All Forums

logo NoMachine-for-Windows NoMachine for Windows (1368)
logo NoMachine-for-Mac NoMachine for Mac (734)
logo NoMachine-for-Linux NoMachine for Linux (2265)
logo NoMachine-for-Mobile NoMachine for Mobile (167)
logo NoMachine-Cloud-Server-Products NoMachine Cloud Server Products (188)
logo NoMachine-Terminal-Server-Products NoMachine Terminal Server Products (230)
logo NoMachine-for-ARM NoMachine for ARM (43)
logo NoMachine-for-Raspberry-Pi NoMachine for Raspberry Pi (74)
logo General-Discussions General Discussions (500)

All Forums

logo NoMachine-for-Windows NoMachine for Windows (1368)
logo NoMachine-Terminal-Server-Products NoMachine Terminal Server Products (230)
logo NoMachine-for-Mac NoMachine for Mac (734)
logo NoMachine-for-ARM NoMachine for ARM (43)
logo NoMachine-for-Linux NoMachine for Linux (2265)
logo NoMachine-for-Raspberry-Pi NoMachine for Raspberry Pi (74)
logo NoMachine-for-Mobile NoMachine for Mobile (167)
logo General-Discussions General Discussions (500)
logo NoMachine-Cloud-Server-Products NoMachine Cloud Server Products (188)
logo forum list
logo login list

Cannot login with key using nx protocol

Forum / NoMachine for Linux / Cannot login with key using nx protocol

Tagged: key, key login, NX

  • This topic has 7 replies, 2 voices, and was last updated 8 years, 9 months ago by stshadow.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • June 9, 2016 at 08:20 #11570
    stshadow
    Participant

    When I try to set up key login using https://www.nomachine.com/AR02L00785 – it doesn’t work for me.

    I have ~/.nx/config/authorized.crt with my ssh-rsa public key, but at nxserver.log I see:

    2016-06-08 14:24:38 852.069 13894 NXSERVER Going to call NXProcessRemove(14329)
    2016-06-08 14:24:38 852.562 13894 NXSERVER WARNING! Process ‘/usr/NX/bin/nxexec –cat –user username –path config/authorized.crt’ with pid ‘14329/14329’ finished with exit code 1 after 0,63 seconds.
    2016-06-08 14:24:38 852.723 13894 NXSERVER nxDefaultExitCodeHandler: process with pid 14329 just died with exit code ‘1’.
    2016-06-08 14:24:38 853.170 13894 NXSERVER NXRunCommand: process ‘14329’ exit status was ‘1’
    2016-06-08 14:24:38 853.376 13894 NXSERVER NXRunCommand: process ‘14329’ stderr was ”
    2016-06-08 14:24:38 853.515 13894 NXSERVER NXRunCommand: return: 1
    2016-06-08 14:24:38 853.867 13894 NXSERVER _getSupportedKeys nxexec exit code [1], output [], error [NX> 500 Error: Cannot stat file: /home/username/.nx/config/authorized.crt.\n]
    2016-06-08 14:24:38 854.066 13894 NXSERVER __getSupportedKeys return:0
    2016-06-08 14:24:38 854.307 13894 NXSERVER Client public key not recognized.
    2016-06-08 14:24:38 854.487 13894 NXSERVER Client request not accepted.
    2016-06-08 14:24:38 855.699 13894 NXSERVER Handler exit.

    $ ls -la ~/.nx/config/
    total 12K
    drwx——+ 2 username ddd    4 Jun  8 07:22 ./
    drwx——+ 6 username ddd    6 Jun  8 07:17 ../
    -rw——-+ 1 username ddd  414 Jun  8 07:21 authorized.crt
    -rw——-+ 1 username ddd 7.0K Jun  8 07:17 player.cfg

     

    June 10, 2016 at 10:00 #11587
    stshadow
    Participant

    Any idea what’s wrong and how to fix it?

    June 13, 2016 at 11:10 #11591
    Cato
    Participant

    Hello stshadow,

    Can you please show us the output of the following commands?

    test -f /home/username/.nx/config/authorized.crt && echo “YES” || echo “NO”;

    test -f /home/username/.nx/config/authorized.crt && echo “YES” || echo “NO”;

    stat /home/username/.nx/config/authorized.crt;

    June 29, 2016 at 15:07 #11733
    stshadow
    Participant

    Hello Cato

    Here is an output
    02:01 username@remoteVM ~/.nx/config
    $ test -f /home/username/.nx/config/authorized.crt && echo “YES” || echo “NO”;
    YES

    02:02 username@remoteVM ~/.nx/config
    $ stat /home/username/.nx/config/authorized.crt;
    File: `/home/username/.nx/config/authorized.crt’
    Size: 414             Blocks: 2          IO Block: 8192   regular file
    Device: 23h/35d Inode: 88762808    Links: 1
    Access: (0600/-rw——-)  Uid: (1112939/username)   Gid: ( 8500/     dba)
    Access: 2016-06-08 07:22:20.487798571 -0700
    Modify: 2016-06-08 07:21:39.124950472 -0700
    Change: 2016-06-08 07:24:17.627835320 -0700

     

    First and second commands are the same ( test -f home/username<span class=.nx/config/authorized.crt && echo “YES” || echo “NO”; )

    July 4, 2016 at 08:46 #11753
    Cato
    Participant

    Hello stshadow,

    I noticed that UID of your user is unusually high: 1112939. Is your system part of Kerberos, LDAP or Active Directory? Does it perhaps use dynamic mounting of user’s home directories (like AFS or NFS)?

    July 5, 2016 at 08:44 #11759
    stshadow
    Participant

    Kerberos, I believe.

    Yes, user home is mounted with nfs.

    July 29, 2016 at 17:13 #11965
    Cato
    Participant

    Hello stshadow,

    The problem with dynamically mounted home directories and keys authentication is that keys are placed inside home directory which is not mounted yet, so authentication can’t be completed. The workaround could be to configure automount so that home directory is mounted on first access attempt. We are also working on allowing keys path configuration to allow keys storage outside home directory: https://www.nomachine.com/FR07N03139.

    August 2, 2016 at 12:34 #11975
    stshadow
    Participant

    Hi Cato.

    Ok. Got it. Thanks for explanation.

    Not sure if I could change automount settings – I don’t have full control over VM, so for now I’ve just subscribed to FR.

  • Author
    Posts
Viewing 8 posts - 1 through 8 (of 8 total)

This topic was marked as solved, you can't post.

Follow Us

  • Home +
    • Everybody
    • Enterprise
    • Download
    • Support
  • Learn more +
    • Features
    • Price and Availability
    • Article and FAQs
    • Software updates
  • Resources +
    • Forum
    • Installation Guides
    • Knowledge Base
    • Partners
  • Company +
    • About us
    • Contact us
    • Become a partner
    • News

Copyright 2002-2025, NoMachine S.à r.l. - VAT LU25935711 - NoMachine Privacy Policy