Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Connecting FreeNX on Ubuntu Using NX Client

Posted on 2011-02-17
12
Medium Priority
?
1,788 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 2000 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
Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

 
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
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…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses
Course of the Month7 days, 11 hours left to enroll

824 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