title: Unable to connect using FreeNX after cloning of a working ubuntu EC2 instance
body: <p>I have previously setup a EC2 instance on Ubuntu 10.04 and setup the necessary binaries to allow ssh and more the nomachine client on windows.  This solution worked well.</p>
  
  <p>I wanted to create another instance of the same setup , so i created a AMI image from the aws management console(browser) and launch a new instance using the image with the exact same keypair and security setting.</p>
  
  <p>Expecting the instance to work exactly the same i tried to connect to it using SSH and FreeNX again.</p>
  
  <p>Result:</p>
  
  <p>SSH is working fine and my env look exactly the same.</p>
  
  <p>NX is unable to connect.</p>
  
  <p>When I try to login to NX it says "Authentication failed for user XXX"</p>
  
  <p>On the windows side I checked the sshlog and get the following:</p>
  
  <pre><code>NX&gt; 203 NXSSH running with pid: 6672
  NX&gt; 285 Enabling check on switch command
  NX&gt; 285 Enabling skip of SSH config files
  NX&gt; 285 Setting the preferred NX options
  NX&gt; 200 Connected to address: xx.xx.xx.xx on port: 22
  NX&gt; 202 Authenticating user: nx
  NX&gt; 208 Using auth method: publickey
  HELLO NXSERVER - Version 3.2.0-74-SVN OS (GPL, using backend: 3.5.0)
  NX&gt; 105 hello NXCLIENT - Version 3.2.0
  NX&gt; 134 Accepted protocol: 3.2.0
  NX&gt; 105 SET SHELL_MODE SHELL
  NX&gt; 105 SET AUTH_MODE PASSWORD
  NX&gt; 105 login
  NX&gt; 101 User: XXX
  NX&gt; 102 Password: 
  /usr/bin/nxserver: line 578: kill: (27690) - No such process
  /usr/bin/nxserver: line 580: kill: (27690) - No such process
  NX&gt; 404 ERROR: wrong password or login
  NX&gt; 999 Bye
  NX&gt; 280 Exiting on signal: 15
  </code></pre>
  
  <p>Any idea why this might be happening or how to fix it?</p>