<br>
<br><tt><font size=2>Dion Moult <dion@thinkmoult.com> wrote on 26/09/2009
03:01:22:<br>
<br>
> Tried changing that, restarting sshd and nxserver, but it still <br>
> gives the same <br>
> error:<br>
> <br>
> sshd[23560]: Connection from 127.0.0.1 port 38026<br>
> sshd[23560]: Failed none for nx from 127.0.0.1 port 38026 ssh2<br>
> sshd[23560]: Found matching DSA key: blahblahblahetcetc<br>
> sshd[23560]: Accepted publickey for nx from 127.0.0.1 port 38026 ssh2<br>
> sshd[23560]: pam_unix(sshd:session): session opened for user nx by
(uid=0)<br>
> sshd[23560]: User child is on pid 23562<br>
> nxserver[23692]: (nx) Failed login for user=dion from IP=127.0.0.1<br>
> sshd[23562]: Connection closed by 127.0.0.1<br>
> sshd[23562]: Transferred: sent 2848, received 1968 bytes<br>
> sshd[23562]: Closing connection to 127.0.0.1 port 38026<br>
> sshd[23560]: pam_unix(sshd:session): session closed for user nx<br>
> </font></tt>
<br>
<br>
<br><tt><font size=2>Sounds like password or account issues with user dion</font></tt>
<br>
<br><tt><font size=2>On the server, try</font></tt>
<br>
<br><tt><font size=2>
ssh -v -p 443 -l dion localhost</font></tt>
<br>
<br><tt><font size=2>The -v will tell you what it is trying and what fails.</font></tt>
<br>
<br><tt><font size=2>It should ask for a password. If user dion has an
id_dsa or id_rsa key in $HOME/.ssh then you need to temporarily rename
it id_dsa.000 or some such.</font></tt>
<br>
<br><tt><font size=2>If you can't log in as user dion locally using a password
then it won't work over nx, so you need to prove this works/fix it next
. . . . </font></tt>
<br>
<br>
<br>
<br><tt><font size=2><br>
> On Saturday 26 September 2009 09:55:03 you wrote:<br>
> > ---------- Forwarded Message ----------<br>
> > <br>
> > Subject: Re: [FreeNX-kNX] NXClient fails to connect with authentication<br>
> > failed for user.<br>
> > Date: Friday 25 September 2009<br>
> > From: "ChrisB" <chris@ccburton.com><br>
> > To: User Support for FreeNX Server and kNX Client <freenx-knx@kde.org><br>
> > <br>
> > Dion Moult <dion@thinkmoult.com> wrote on 25/09/2009 18:09:17:<br>
> > <br>
> > <br>
> > SNIP<br>
> > <br>
> > > sshd[13479]: Connection from 127.0.0.1 port 40791<br>
> > > sshd[13479]: Found matching DSA key: blahblahblahblah<br>
> > > sshd[13479]: Accepted publickey for nx from 127.0.0.1 port
40791 ssh2<br>
> > > sshd[13479]: pam_unix(sshd:session): session opened for
user nx by<br>
> > <br>
> > (uid=0)<br>
> > <br>
> > > sshd[13479]: User child is on pid 13481<br>
> > > nxserver[13611]: (nx) Failed login for user=dion from IP=127.0.0.1<br>
> > <br>
> > Yup<br>
> > <br>
> > > I have checked that the public key is in /home/dion/.<br>
> > > ssh/authorized_keys. If I<br>
> > > do ssh -p 443 localhost on the computer with the account
dion it asks<br>
> > <br>
> > for my<br>
> > <br>
> > > passphrase of my private keypair (not the NX one) and I
can log in and<br>
> > <br>
> > SSH in<br>
> > <br>
> > You need to use password authentication for the local user after<br>
> > connecting via ssh as user nx.<br>
> > <br>
> > Some distros disable this by default because it allows brute
force attacks<br>
> > . . . .<br>
> > <br>
> > > remotely fine without problems. I'm not sure whether it
helps but when I<br>
> > <br>
> > try<br>
> > <br>
> > > ssh -p 443 nx@localhost it asks for a Password, of which
nothing I<br>
> > > try can log<br>
> > > it in.<br>
> > ><br>
> > > This is my sshd_config:<br>
> > > Port 443<br>
> > > Protocol 2<br>
> > > SyslogFacility AUTH<br>
> > > PermitRootLogin no<br>
> > > RSAAuthentication yes<br>
> > > PubkeyAuthentication yes<br>
> > > PasswordAuthentication no<br>
> > <br>
> > Here<br>
> > <br>
> > Just change to PasswordAuthentication yes<br>
> > <br>
> > > PermitEmptyPasswords no<br>
> > > UsePAM yes<br>
> > > Compression yes<br>
> > > KeepAlive yes<br>
> > > ClientAliveInterval 30<br>
> > > ClientAliveCountMax 4<br>
> > > AuthorizedKeysFile .ssh/authorized_keys<br>
> > > LogLevel VERBOSE<br>
> > ><br>
> > > (Note: I run SSH on port 443 on purpose, not by accident)<br>
> > ><br>
> > > Summary: When trying to connect using username and password
for the<br>
> > <br>
> > account<br>
> > <br>
> > > "dion" which exists on the box running freenx
it says Authentication<br>
> > <br>
> > failed<br>
> > <br>
> > > for user dion.<br>
> > ><br>
> > > Any ideas? Much appreciated.<br>
> > <br>
> > ________________________________________________________________<br>
> > <br>
> > > Were you helped on this list with your
FreeNX problem?<br>
> > > Then please write up the solution in the FreeNX
Wiki/FAQ:<br>
> > <br>
> > </font></tt><a href="http://openfacts2.berlios.de/wikien/index.php/BerliosProject:FreeNX_-_FAQ"><tt><font size=2>http://openfacts2.berlios.de/wikien/index.php/BerliosProject:FreeNX_-_FAQ</font></tt></a><tt><font size=2><br>
> > <br>
> > > Don't forget to check
the NX Knowledge Base:<br>
> > >
</font></tt><a href=http://www.nomachine.com/kb/><tt><font size=2>http://www.nomachine.com/kb/</font></tt></a><tt><font size=2><br>
> > ><br>
> > > ________________________________________________________________<br>
> > > FreeNX-kNX mailing list --- FreeNX-kNX@kde.org<br>
> > > </font></tt><a href="https://mail.kde.org/mailman/listinfo/freenx-knx"><tt><font size=2>https://mail.kde.org/mailman/listinfo/freenx-knx</font></tt></a><tt><font size=2><br>
> > > ________________________________________________________________<br>
> > <br>
> > -------------------------------------------------------<br>
> > <br>
> -- <br>
> Dion Moult :-)<br>
> [attachment "signature.asc" deleted by chris burton/solar-<br>
> system/local] ________________________________________________________________<br>
> Were you helped on this list with your FreeNX
problem?<br>
> Then please write up the solution in the FreeNX Wiki/FAQ:<br>
> <br>
> </font></tt><a href="http://openfacts2.berlios.de/wikien/index.php/BerliosProject:FreeNX_-_FAQ"><tt><font size=2>http://openfacts2.berlios.de/wikien/index.php/BerliosProject:FreeNX_-_FAQ</font></tt></a><tt><font size=2><br>
> <br>
> Don't forget to check the NX Knowledge
Base:<br>
> </font></tt><a href=http://www.nomachine.com/kb/><tt><font size=2>http://www.nomachine.com/kb/</font></tt></a><tt><font size=2>
<br>
> <br>
> ________________________________________________________________<br>
> FreeNX-kNX mailing list --- FreeNX-kNX@kde.org<br>
> </font></tt><a href="https://mail.kde.org/mailman/listinfo/freenx-knx"><tt><font size=2>https://mail.kde.org/mailman/listinfo/freenx-knx</font></tt></a><tt><font size=2><br>
> ________________________________________________________________</font></tt>