Solved

Connecting FreeNX on Ubuntu Using NX Client

Posted on 2011-02-17
12
1,748 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

 
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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Suggested Solutions

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…
Fine Tune your automatic Updates for Ubuntu / Debian
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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.

756 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