<br><tt><font size=2>freenx-knx-bounces@kde.org wrote on 01/05/2013 05:10:01:<br>
<br>
> Hi All,</font></tt>
<br><tt><font size=2>> <br>
> All of a sudden, I can no longer log into my server with FreeNX. It
<br>
> used to work fine. I can login via ssh with the same username and
<br>
> password. When I try to login with FreeNX, I get the error message
<br>
> below. The password is correct, ssh has been configured to accept
<br>
> password authentication, and config files look correct.</font></tt>
<br><tt><font size=2>> <br>
> <br>
> -- NX SERVER START: -c /usr/lib/nx/nxserver - ORIG_COMMAND=<br>
> -- NX SERVER START: - ORIG_COMMAND=<br>
> Info: Using fds #4 and #3 for communication with nxnode.<br>
> HELLO NXSERVER - Version 3.2.0-74-SVN OS (GPL, using backend: 3.5.0)<br>
> NX> 105 hello NXCLIENT - Version 3.2.0<br>
> NX> 134 Accepted protocol: 3.2.0<br>
> NX> 105 SET SHELL_MODE SHELL<br>
> NX> 105 SET AUTH_MODE PASSWORD<br>
> NX> 105 login<br>
> NX> 101 User: user<br>
> NX> 102 Password:<br>
> Info: Auth method: ssh Connection closed by 127.0.0.1<br>
</font></tt>
<br><tt><font size=2>> expect: spawn id exp7 not open<br>
</font></tt>
<br><tt><font size=2>An error Message ( from expect )</font></tt>
<br><tt><font size=2> ( which waits
for the password prompt before logging you in )</font></tt>
<br>
<br><tt><font size=2>> while executing<br>
> "expect {<br>
> "Are you sure you want to continue connecting (yes/no)?"
{ send "yesr" }<br>
> "assword*:" { sleep 0.3; send "$passwordr"
}<br>
> "Permission de..."<br>
> ("while" body line 2)<br>
> invoked from within<br>
> "while {1} {<br>
> expect {<br>
> "Are you sure you want to continue connecting (yes/no)?"
{ send "yesr" }<br>
> "assword*:" { sleep 0.3; send "$passwordr"
}<br>
> "..."<br>
> (file "/usr/lib/nx/nxnode-login" line 72)<br>
</font></tt>
<br><tt><font size=2> . . . and some details from expect about what
went wrong . . .</font></tt>
<br>
<br><tt><font size=2>Spawn id not open means that</font></tt>
<br><tt><font size=2> the "expect"
spawned process</font></tt>
<br><tt><font size=2> ( ssh localhost
in this case )</font></tt>
<br><tt><font size=2>has terminated ( unexpectedly) </font></tt>
<br><tt><font size=2>but</font></tt>
<br><tt><font size=2>the code isn't handling it.</font></tt>
<br>
<br>
<br><tt><font size=2>> FREENX> 716 Slave mode failed to start.<br>
> Info: Closing connection to slave with pid 21260.<br>
</font></tt>
<br><tt><font size=2>. . . . and the subsequent FreeNX error message anouncing</font></tt>
<br><tt><font size=2> failure
to start . . . . </font></tt>
<br>
<br>
<br><tt><font size=2>> <br>
> NX> 404 ERROR: wrong password or login<br>
</font></tt>
<br><tt><font size=2>. . . . due to your username not being authenticated</font></tt>
<br>
<br><tt><font size=2>> NX> 999 Bye<br>
> user@chi:/var/log#</font></tt>
<br><tt><font size=2>> <br>
> Has anyone seen this before? Any suggestions on what I should
do?</font></tt>
<br>
<br><tt><font size=2>Well I haven't seen this, however . . . </font></tt>
<br>
<br><tt><font size=2>First I suggest you check again that the sshd you
are pointing</font></tt>
<br><tt><font size=2>at really is</font></tt>
<br><tt><font size=2> still working
with password authentication</font></tt>
<br>
<br><tt><font size=2>eg. see</font></tt>
<br><tt><font size=2> PasswordAuthentication
yes in /etc/sshd/sshd_config</font></tt>
<br>
<br><tt><font size=2> did you miss restarting
sshd after you updated something ??</font></tt>
<br><tt><font size=2>and</font></tt>
<br><tt><font size=2> SSHD_PORT=22
in /etc/nxserver/node.conf</font></tt>
<br><tt><font size=2>
or wherever
it really is listening</font></tt>
<br><tt><font size=2>and</font></tt>
<br><tt><font size=2>that you still have FREENX ssh authentication selected.</font></tt>
<br>
<br><tt><font size=2> ENABLE_SSH_AUTHENTICATION="1"</font></tt>
<br><tt><font size=2> ENABLE_USERMODE_AUTHENTICATION="0"</font></tt>
<br><tt><font size=2> ENABLE_SU_AUTHENTICATION="0"</font></tt>
<br>
<br>
<br>
<br>
<br>
<br><tt><font size=2>You can best test your ssh from the FreeNX server</font></tt>
<br><tt><font size=2> using the line of NX code ( with "your-user-name-here
added" )</font></tt>
<br>
<br>
<br><tt><font size=2>ssh -2 -x -l "your-user-name-here"
127.0.0.1 -o "NumberOfPasswordPrompts 1" -p 22</font></tt>
<br>
<br><tt><font size=2>*** NOTE we are looking for a</font></tt>
<br>
<br><tt><font size=2> " .
. . password:" prompt</font></tt>
<br>
<br><tt><font size=2> and a subsequent successful PASSWORD login AS
YOUR USER ****</font></tt>
<br>
<br>
<br><tt><font size=2> **** NOTE if you get</font></tt>
<br>
<br><tt><font size=2> The authenticity
of host '127.0.0.1 (127.0.0.1)' can't be established.</font></tt>
<br><tt><font size=2> ECDSA key fingerprint
is la:la:la: etcb cte.</font></tt>
<br><tt><font size=2> Are you sure you
want to continue connecting (yes/no)? </font></tt>
<br>
<br><tt><font size=2>then the expect script can cope with this also !!!!</font></tt>
<br>
<br><tt><font size=2>* * * BUT * * *</font></tt>
<br>
<br><tt><font size=2>if you get anything else, then </font></tt>
<br><tt><font size=2> sent me a copy
of what ssh says</font></tt>
<br><tt><font size=2> and the following info </font></tt>
<br><tt><font size=2> what distro do
you use??</font></tt>
<br><tt><font size=2> what version of
ssh is installed?</font></tt>
<br>
<br>
<br><tt><font size=2>and</font></tt>
<br><tt><font size=2>Let us know how you get on !!!!</font></tt>
<br>