Solved

Connecting FreeNX on Ubuntu Using NX Client

Posted on 2011-02-17
12
1,740 Views
Last Modified: 2012-05-11
I am relatively inexperienced with Linux and am trying to setup FreeNX on a new Ubuntu 10.10 box to allow my Windows 7 box to connect using the nomachine client 3.4.0-10. I have followed the instructions at https://help.ubuntu.com/community/FreeNX. I have generated custom keys and imported client.id_dsa.key into NX Client. I am unable to connect and get the following  int eh details section of the Client:-

NX> 203 NXSSH running with pid: 2128
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.0.118 on port: 22
Write failed: Connection reset by peer

Open in new window


I am at a complete loss as to how to troubleshoot this.
0
Comment
Question by:cescentman
  • 7
  • 3
  • 2
12 Comments
 
LVL 14

Accepted Solution

by:
svgmuc earned 500 total points
ID: 34916603
Is there an SSH server (sshd) running on 192.168.0.118?
Do you have permission to connect to it? The right key file? The password? Even the correct user?

1.
If you have physical access to 192.168.0.118, log in and type

ps xa| grep sshd

You may need root privileges for it to show.

If you don't have physical access, try to log in via ssh.

2.
Try to log in via ssh using the user configured for freenx.
0
 
LVL 1

Author Comment

by:cescentman
ID: 34917303
Thanks for the prompt assistance.

Yes the box is on my LAN and SSH is running the grep command produced:

757    ?        Ss    0:00   /usr/sbin/sshd -D
2170  pts/1  S+    0:0    grep ---color=auto sshd

Open in new window


As to the other points:-

There is only one user on the box at the moment, presumably this is the user you are referring to? If so how do I check if it has permissions to use SSH?

The password is correct but not sure about key. I have generated a custom key for NXServer is that the one?

However if I try and connect to the box using Putty I get the error: "Network error: Software caused connection abort". Telnet fails on port 22 as well but connects to Apache on port 80 so I'm assuming that it isn't a firewall issue on my box

0
 
LVL 14

Expert Comment

by:svgmuc
ID: 34917507
Can you use ssh to that box? Any user...
0
Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

 
LVL 1

Author Comment

by:cescentman
ID: 34917745
Sorry wasn't specific above:-

"... connect to the box using Putty I get the error: "Network error: Software caused connection abort" ..."

I was using the SSH in Putty.
0
 
LVL 1

Expert Comment

by:JackSperow
ID: 34918800
Hi,

I tried this tool last month i was also fadeup to configure it properly..
I used Team Viewer and VNC for GUI remote of Linux to Linux..
I would suggest you to go with VNC is the best application instead of FreeNX.
0
 
LVL 1

Author Comment

by:cescentman
ID: 34918890
Thanks for the suggestion but VNC lags too much for me, I'm also interested in getting NX up and running as I want to see whether it is as productive as it seems as you can run RDP from it too.
0
 
LVL 14

Expert Comment

by:svgmuc
ID: 34918942
Okay, then it actually might be a firewall issue.
Check the packet filter, if it allows for port 22 connections from your computer.
0
 
LVL 1

Expert Comment

by:JackSperow
ID: 34918999
In VNC also you can set password. to rpotect.
In VNC you can set your display what exectly you want.
About FreeNX i am not sure.
0
 
LVL 1

Author Comment

by:cescentman
ID: 34919129
Nope not that, I turned it off just to be sure. Is there a firewall by default on Ubuntu, it's a plain vanilla install with just openssh server and NX server added to it.? If so, it might be that; any idea how you turn that off?
0
 
LVL 1

Author Comment

by:cescentman
ID: 34933767
Have now managed to connect using Putty and SSH this was resolved by adding:-

sshd: ALL

Open in new window


in /etc/hosts.allow (I'll sort out a more secure entry later.

Sadly FreeNX is still not connecting giving the error:-

NX> 203 NXSSH running with pid: 5568
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.0.118 on port: 22
ssh_exchange_identification: read: Connection reset by peer

Open in new window

0
 
LVL 1

Author Comment

by:cescentman
ID: 34939797
I decided to revert the server to the default keys. That seems to work. Must be something to do with the key export. Thanks for the help anyway.
0
 
LVL 1

Author Closing Comment

by:cescentman
ID: 34939801
Thanks
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Rate limit for DNS queries 7 84
Coding C# in Linux 8 130
000webhost.com default error log 1 40
Remove Resilio directory from Netgear ReadyNAS 212 via SSH. 2 47
Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question