PDA

View Full Version : FreeNX: Logging in as normal user



eco2geek
12-15-2004, 09:12 PM
I installed the NX server (GPL Ed.) on a Kanotix box, and the NX client on another Kanotix box. The message from "nxsetup" said to copy /home/.nx/.ssh/client.id_dsa.key on the server to /usr/NX/share/ on the client, overwriting the one there.

If I log into KDE as root, I can run the client and log into the server just fine. But if I'm logged on as my normal user on the client machine, the connection times out, with the message

"NX> 205 Enter passphrase for key '/usr/NX/share/client.id_dsa.key':"

(of course, you only see the message after the connection times out, because the client doesn't open a terminal window).

What should I do?

garyng
12-15-2004, 10:19 PM
you may need to change the id_dsa on the client side to world readable(chmod 0755). Just check the ownership and access mode, it must be related to that.

shah
12-16-2004, 01:14 AM
I installed the NX server (GPL Ed.) on a Kanotix box, and the NX client on another Kanotix box. The message from "nxsetup" said to copy /home/.nx/.ssh/client.id_dsa.key on the server to /usr/NX/share/ on the client, overwriting the one there.

No, you don't need to do that. That's why you get the "NX> 205 Enter passphrase for key '/usr/NX/share/client.id_dsa.key':" error. Hope you have the original back up.

What you need to do is recreate nomachine key on the server side..
nxsetup --setup-nomachine-key

after you create nx user and their password:

nxserver --useradd NEW_USER
nxserver --passwd NEW_USER

:D :D

garyng
12-16-2004, 02:25 AM
I installed the NX server (GPL Ed.) on a Kanotix box, and the NX client on another Kanotix box. The message from "nxsetup" said to copy /home/.nx/.ssh/client.id_dsa.key on the server to /usr/NX/share/ on the client, overwriting the one there.

No, you don't need to do that. That's why you get the "NX> 205 Enter passphrase for key '/usr/NX/share/client.id_dsa.key':" error. Hope you have the original back up.

What you need to do is recreate nomachine key on the server side..
nxsetup --setup-nomachine-key

after you create nx user and their password:

nxserver --useradd NEW_USER
nxserver --passwd NEW_USER

:D :D

That is for nx setup using its own ssh key and own user database. The newer version(and at least the freenx) allows you to have your own ssh key as well as using the standard pam modules(once the ssh session is established using the special NX client).

What eco2geek did was perfectly ok(I prefer that too from a security perspective as no other NX client can get into your machine, blocked at the ssh level), just a few permission issues needs to be sorted out.

shah
12-16-2004, 02:50 AM
I see............
If that the case, this link might help:
http://mail.kde.org/pipermail/freenx-knx/2004-October/000359.html
:D

eco2geek
12-16-2004, 07:34 AM
Thank you, garyng, you hit the nail on the head. Works.

(The user and password were already added, otherwise I couldn't have logged on even as root. I will admit to not knowing what the heck I'm doing here; I assumed that one would have to pay in order to get a key from NoMachine.)

garyng
12-16-2004, 08:30 AM
Thank you, garyng, you hit the nail on the head. Works.

(The user and password were already added, otherwise I couldn't have logged on even as root. I will admit to not knowing what the heck I'm doing here; I assumed that one would have to pay in order to get a key from NoMachine.)

No you don't. NoMachine has one client key in their product so every client can talk to every server. This is essentially a secure tunnel, the authentication is done through this tunnel(Windows logon, PAM or its own). I just paranoid and don't want other NX clients to establish tunnels to my machines, thus the generated client key(just a SSH key pair).