You are not logged in.

#1 2008-06-15 13:26:51

ould
Member
Registered: 2007-05-22
Posts: 121

SOLVED Having trouble setting up FreeNX

Hi everyone,

I am trying to setup FreeNX on my new Arch install so I can connect remotely from work or wherever. I seem to have gotten the server part setup on my Arch install and I have the windows client installed on my laptop at work. I am connected to my home network via VPN which is working well. I can connect by SSH no problem. When I try to connect by FreeNX here is the output from the Client:

NX> 203 NXSSH running with pid: 848
NX> 285 Enabling check on switch command
NX> 285 Enabling skip of SSH config files
NX> 285 Setting the preferred NX options
NX> 200 Connected to address: 192.168.15.7 on port: 22
NX> 211 The authenticity of host '192.168.15.7 (192.168.15.7)' can't be established.
RSA key fingerprint is 6a:a3:3d:7e:e5:b8:ec:ee:1b:40:e8:b9:3a:64:77:44.
Are you sure you want to continue connecting (yes/no)? 
Warning: Permanently added '192.168.15.7' (RSA) to the list of known hosts.
NX> 202 Authenticating user: nx
NX> 208 Using auth method: publickey
HELLO NXSERVER - Version 2.1.0-71 OS (GPL)
NX> 105 hello NXCLIENT - Version 2.1.0
NX> 134 Accepted protocol: 2.1.0
NX> 105 SET SHELL_MODE SHELL
NX> 105 SET AUTH_MODE PASSWORD
NX> 105 login
NX> 101 User: kevin
NX> 102 Password: 
expect: spawn id exp5 not open
    while executing
"expect {
        "Are you sure you want to continue connecting (yes/no)?" { send "yes\r" }
        "assword*:"  { sleep 0.3; send "$password\r" }
        "Permission de..."
    ("while" body line 2)
    invoked from within
"while {1} {
    expect {
        "Are you sure you want to continue connecting (yes/no)?" { send "yes\r" }
        "assword*:"  { sleep 0.3; send "$password\r" }
        "..."
    (file "/opt/NX/bin/nxnode-login" line 69)
NX> 404 ERROR: wrong password or login
NX> 999 Bye
NX> 280 Exiting on signal: 15

And the Server log:

NX> 105 hello NXCLIENT - Version 2.1.0
NX> 134 Accepted protocol: 2.1.0
NX> 105 SET SHELL_MODE SHELL
NX> 105 SET AUTH_MODE PASSWORD
NX> 105 login
NX> 101 User: kevin
NX> 102 Password:
Info: Auth method: passdb ssh
NX> 404 ERROR: wrong password or login
NX> 999 Bye

It almost appears that the NXClient isn't accepting my login but I have typed in my user login and password numerous times. As I said I can login to SSH using the same laptop, user, password etc. I even added my user to the NX group on my server just in case that was needed but the Wiki didn't mention it. Any help would be greatly appreciated.

Thanks,

Kevin

Last edited by ould (2008-06-15 21:00:01)

Offline

#2 2008-06-15 21:01:33

ould
Member
Registered: 2007-05-22
Posts: 121

Re: SOLVED Having trouble setting up FreeNX

Solved my issue. It seems I still had the deafault /etc/host.deny file which contained ALL:ALL DENY. That was preventing ssh from connecting to localhost. I had a few other small issues after I got past that hurdle but that was the main thing.

Kevin

Offline

#3 2009-02-27 15:50:54

rossic
Member
Registered: 2009-01-23
Posts: 7

Re: SOLVED Having trouble setting up FreeNX

Thanks for posting your findings.  This was the solution to my problem!  It was a rare find.  Strange, because even though in hosts.allow sshd was set to allow my local subnet.

I'd like to point out that the default ALL:ALL DENY is a good thing to have.  In /etc/hosts.allow, if you add the line "sshd : localhost.localdomain : ALLOW" it should work just fine.

Offline

Board footer

Powered by FluxBB