Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
FreeNX authentication problem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
linuxpyro
Apprentice
Apprentice


Joined: 08 Sep 2004
Posts: 255

PostPosted: Fri Mar 18, 2005 2:17 am    Post subject: FreeNX authentication problem Reply with quote

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
View user's profile Send private message
linuxpyro
Apprentice
Apprentice


Joined: 08 Sep 2004
Posts: 255

PostPosted: Fri Mar 18, 2005 2:31 am    Post subject: Reply with quote

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
View user's profile Send private message
D2T
Tux's lil' helper
Tux's lil' helper


Joined: 07 Mar 2005
Posts: 96
Location: Behind You

PostPosted: Fri Mar 18, 2005 3:57 pm    Post subject: Reply with quote

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. :D
Back to top
View user's profile Send private message
linuxpyro
Apprentice
Apprentice


Joined: 08 Sep 2004
Posts: 255

PostPosted: Fri Mar 18, 2005 9:36 pm    Post subject: Reply with quote

I tried that, but I get the same error. :roll:
Back to top
View user's profile Send private message
linuxpyro
Apprentice
Apprentice


Joined: 08 Sep 2004
Posts: 255

PostPosted: Sat Mar 19, 2005 11:42 pm    Post subject: Reply with quote

*Bump*
Back to top
View user's profile Send private message
D2T
Tux's lil' helper
Tux's lil' helper


Joined: 07 Mar 2005
Posts: 96
Location: Behind You

PostPosted: Tue Mar 22, 2005 6:44 pm    Post subject: Reply with quote

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
View user's profile Send private message
j-kidd
Apprentice
Apprentice


Joined: 20 Feb 2003
Posts: 213

PostPosted: Sat Mar 26, 2005 8:03 am    Post subject: Reply with quote

In /etc/shadow, do you have a line that starts with "nx:!:"? If so, try replacing "!" with "*".
Back to top
View user's profile Send private message
WhimpyPeon
Apprentice
Apprentice


Joined: 18 Oct 2003
Posts: 158
Location: Columbus, Nebraska

PostPosted: Wed Apr 06, 2005 10:22 pm    Post subject: Reply with quote

Thanks J-Kidd was just working on getting this running again after a fresh install and your tip did the trick!
Back to top
View user's profile Send private message
opensas
Guru
Guru


Joined: 24 Nov 2004
Posts: 408
Location: Buenos Aires - Argentina

PostPosted: Thu May 26, 2005 5:44 am    Post subject: Reply with quote

Thanks a lot K-Kidd, that solved my problem too :wink:

I guess the e-build should do that for you, or at least warn you about it

Saludos

Sas
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum