View previous topic :: View next topic |
Author |
Message |
linuxpyro Apprentice
Joined: 08 Sep 2004 Posts: 255
|
Posted: Fri Mar 18, 2005 2:17 am Post subject: FreeNX authentication problem |
|
|
Hello, I am trying to install FreeNX. I installed it per the instructions in this thread: https://forums.gentoo.org/viewtopic-t-278334-highlight-freenx.html. The emerge was successful. I installed the client on my XP Pro box, and copied the client key into the share directory (under C:\Program Files\NX Client for Windows\share). I added my username and password as an NX user. Upon trying to log in from the Windows box, however, I got this error:
Code: |
NX> 203 NXSSH running with pid: 608
NX> 285 Enabling check on switch command
NX> 285 Enabling skip of SSH config files
NX> 200 Connected to address: 192.168.1.3 on port: 22
NX> 202 Authenticating user: nx
NX> 208 Using auth method: publickey
NX> 204 Authentication failed.
|
I Googled the last few lines, and found some posts on other forums saying that the solution is to run /usr/NX/bin/nxsetup --setup-nomachine-key. However, the file nxsetup doesn't exist under /usr/NX/bin (or anywhere for that matter). Also, I searched the forums here but didn't find a mention of the nxsetup program.
Has anyone else had this problem? |
|
Back to top |
|
|
linuxpyro Apprentice
Joined: 08 Sep 2004 Posts: 255
|
Posted: Fri Mar 18, 2005 2:31 am Post subject: |
|
|
Another thing. Here is a line from /var/log/messages that had something interesting in it. This is from today (the 17th) when I tried to log in via nx. (I just found it now; I don't know which login attempt triggered it.)
Code: |
Mar 17 03:57:10 leartes usermod[27732]: change user `nx' shell from `/usr/NX/bin/nxserver' to `/usr/NX/bin/nxserver'
|
|
|
Back to top |
|
|
D2T Tux's lil' helper
Joined: 07 Mar 2005 Posts: 96 Location: Behind You
|
Posted: Fri Mar 18, 2005 3:57 pm Post subject: |
|
|
Do you have any login rules set in /etc/ssh/sshd_config? I was just setting this up the other day and was getting a similar message because nx was not allowed to log in through ssh with my ruleset.
Try adding/modifying the AllowUsers line to include nx.. Ex.:
Code: | AllowUsers user1 user2 nx |
Was a simple mistake on my part and may not be your issue, but worth checking. |
|
Back to top |
|
|
linuxpyro Apprentice
Joined: 08 Sep 2004 Posts: 255
|
Posted: Fri Mar 18, 2005 9:36 pm Post subject: |
|
|
I tried that, but I get the same error. |
|
Back to top |
|
|
linuxpyro Apprentice
Joined: 08 Sep 2004 Posts: 255
|
Posted: Sat Mar 19, 2005 11:42 pm Post subject: |
|
|
*Bump* |
|
Back to top |
|
|
D2T Tux's lil' helper
Joined: 07 Mar 2005 Posts: 96 Location: Behind You
|
Posted: Tue Mar 22, 2005 6:44 pm Post subject: |
|
|
I use password authentication instead of publickey, so that's probably what's causing the difference.
Did you copy the ssh key to the computer you're trying to connect from? I think something like that may be necessary. |
|
Back to top |
|
|
j-kidd Apprentice
Joined: 20 Feb 2003 Posts: 213
|
Posted: Sat Mar 26, 2005 8:03 am Post subject: |
|
|
In /etc/shadow, do you have a line that starts with "nx:!:"? If so, try replacing "!" with "*". |
|
Back to top |
|
|
WhimpyPeon Apprentice
Joined: 18 Oct 2003 Posts: 158 Location: Columbus, Nebraska
|
Posted: Wed Apr 06, 2005 10:22 pm Post subject: |
|
|
Thanks J-Kidd was just working on getting this running again after a fresh install and your tip did the trick! |
|
Back to top |
|
|
opensas Guru
Joined: 24 Nov 2004 Posts: 408 Location: Buenos Aires - Argentina
|
Posted: Thu May 26, 2005 5:44 am Post subject: |
|
|
Thanks a lot K-Kidd, that solved my problem too
I guess the e-build should do that for you, or at least warn you about it
Saludos
Sas |
|
Back to top |
|
|
|