Gentoo Archives: gentoo-user

From: Paul Hartman <paul.hartman+gentoo@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] NX* recommendation / help
Date: Thu, 25 Jun 2009 15:54:07
Message-Id: 58965d8a0906250854p7dfbdd5ej516c91e2837e0e0e@mail.gmail.com
In Reply to: Re: [gentoo-user] NX* recommendation / help by Helmut Jarausch
1 On Thu, Jun 25, 2009 at 10:33 AM, Helmut
2 Jarausch<jarausch@××××××××××××××××.de> wrote:
3 > On 25 Jun, Paul Hartman wrote:
4 >> On Thu, Jun 25, 2009 at 2:18 AM, Helmut
5 >> Jarausch<jarausch@××××××××××××××××.de> wrote:
6 >>> I have been using net-misc/nxserver-freeedition / nxclient for quite
7 >>> some time and it was working great (over an DSL line)
8 >>>
9 >>> But, some time ago, all of a sudden, it stopped working (some task died)
10 >>
11 >> Check in your user ~/.nx/ directory and delete old sessions... I had
12 >> the problem where NX would connect and then timeout before ever
13 >> loading a desktop environment. Deleting all of the old sessions fixed
14 >> it for me.
15 >
16 > Thanks, but on one machine, at least, I get those errors messages which
17 > are driving me nuts
18 >
19 > NX> 203 NXSSH running with pid: 14256
20 > NX> 285 Enabling check on switch command
21 > NX> 285 Enabling skip of SSH config files
22 > NX> 285 Setting the preferred NX options
23 > NX> 200 Connected to address: 134.130.161.252 on port: 22
24 > NX> 202 Authenticating user: nx
25 > NX> 208 Using auth method: publickey
26 > NX> 204 Authentication failed.
27 >
28 > (I did nxsetup --clean --install --setup-nomachine-key --purge
29 > and with nxclient I've set the key to 'Default'
30 > I'm stuck.
31
32 Hi Helmut,
33
34 Be sure the "nx" user has a password set. Any password. It doesn't
35 matter what, as long as it has one. (it actually uses publickey so the
36 password is irrelevant, but sometimes it won't connect without one)
37
38 Otherwise I would double-check that your keys match. Check
39 /usr/NX/share/keys/default.id_dsa.key on the server and compare it to
40 the key you have in your nxclient.
41
42 Furthermore, if you have PAM authentication disabled in your sshd, you
43 need to use the internal user and password database and explicitly add
44 users and passwords to it. At least on my system that's what I had to
45 do.