[FreeNX-kNX] 716 Slave mode failed to start script error?
Chris
chris at ccburton.com
Thu May 2 08:30:15 UTC 2013
freenx-knx-bounces at kde.org wrote on 02/05/2013 08:27:03:
[SNIP]
> >You can best test your ssh from the FreeNX server
> > using the line of NX code ( with "your-user-name-here added" )
>>
> >
>> ssh -2 -x -l "your-user-name-here" 127.0.0.1 -o
"NumberOfPasswordPrompts 1" -p 22
>
> This proved to be helpful. I could SSH into the server, but I
> couldn't SSH locally on the server. I checked my logs and found this:
[SNIP]
> opened for user nx by (uid=0)
> May 2 01:01:54 chi nxserver[10860]: (nx) Failed login for
> user=[username] from IP=[myip]
> May 2 01:01:54 chi sshd[10619]: pam_unix(sshd:session): session
> closed for user nx
>
> SSH would instantly close when I tried it locally with the following
errors:
>
> Connection closed by ::1
> Connection closed by 127.0.0.1
>
> So, to fix it, I commented all the IPv6 lines from the hosts file,
> and removed some huge long lines that spanned forever that were
> added for all of the websites I host so that I can access them
> locally by using the hosts file. This is done automatically by the
> software I use. I guess the length was so long, it corrupted
> things. I have since turned this feature off.
>
> Thanks for the help!
This is caused by localhost becoming ::1 i.e. IPv6
If you aren't IPv6-ing to ssh you can try
AddressFamily inet
in sshd_config
to
pin sshd to IPv4
else
disable IPv6 in
/etc/sysctl.conf
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/freenx-knx/attachments/20130502/de771f1b/attachment.html>
More information about the FreeNX-kNX
mailing list