LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   nxserver can't connect (https://www.linuxquestions.org/questions/linux-newbie-8/nxserver-cant-connect-733421/)

patrickg28 06-16-2009 02:20 PM

nxserver can't connect
 
**disclaimer**
I am completely new to Linux/CentOS5. I just installed it and saw it for the first time yesterday to give you an idea...... So if you can 'dumb down' things to exact steps in any response, please do so! :)

I have Cent-OS-5 running as a vmware virtual machine on a server. I can login to vmware and use the console no problem, but it is so slow at to be unusable. The server is located on a 1mb/s upload pipe for now, and have a 3mb/s down at home where I am trying to access the server from.
It's so slow, it takes about 30 seconds to refresh each screen!

So I thought I'd try nxserver.

I downloaded it via yum on my server and if I type nxserver --status at the command line, it says it is running.

I downloaded the client for my home PC (windows) and installed it.

I somehow managed to get ssh enabled (I think), because I can ssh manually into the server.

both my /etc/nxerver/ folder on my sever and my \nxserver\keys\ folder on my PC have the exact same files (I copy/pasted):

client.id_dsa.key
client.id_dsa.key.pub
server.id_dsa.key
server.id_dsa.pub.key
users.id_dsa
users.id_dsa.pub

But everytime I try to login with the client, it says:

-------------------------------------------------------
NX> 203 NXSSH running with pid: 5096
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: x.x.x.x on port: 22
NX> 202 Authenticating user: nx
NX> 208 Using auth method: publickey
NX> 204 Authentication failed.
------------------------------------------------------

So what am I doing wrong? And why it using user "nx" ?? I never asked it to use this user. I'm putting in root and the correct password into the login/password fields of the nx client....

help!

acid_kewpie 06-18-2009 01:57 AM

the simplest way to get a connection working is to use the default keys that come with the client / server. otherwise you will need to add your own as you said. Get it working with the defaults first. From the logs there it's definitely the case that the keys are incorrect in one way or another.

ns is the system user that is used to connect and spawn the sessions with it's special shell. once that is connected, the remote control stuff is started for the user you want with the login credentials.

And you shouldn't use root, only ever do it as a normal user and once working temporarily elevate yourself to root on demand.


All times are GMT -5. The time now is 07:36 AM.