[FreeNX-kNX] (no subject)

dewey hylton freenx at deweyonline.com
Mon Aug 8 12:58:12 UTC 2005


> Date: Sun, 07 Aug 2005 09:50:30 -0500
> From: Clay McCoy <freenx at claymccoy.com>
> Subject: Re: [FreeNX-kNX] cannot ssh as nx-user
> To: freenx-knx at kde.org
> Message-ID: <42F61FB6.9010902 at claymccoy.com>
> 
> I think that I restarted in debug mode.   "/etc/init.d/sshd start -d -d 
> -d" is what I had to use because "sshd -d -d -d" wouldn't work.  I hope 
> it accomplished the same thing.
> Here is output from "tail -f /var/log/secure" There is an error, but I 
> don't know what it means.
> 
> Aug  7 09:49:19 localhost sshd[8076]: Received signal 15; terminating.
> Aug  7 09:49:32 localhost sshd[8125]: Server listening on :: port 22.
> Aug  7 09:49:32 localhost sshd[8125]: error: Bind to port 22 on 0.0.0.0 
> failed: Address already in use.
> Aug  7 09:50:04 localhost sshd[8130]: Failed password for nx from 
> ::ffff:192.168.0.4 port 50053 ssh2
> 
> Thanks,
> Clay
> 
> 
> dewey hylton wrote:
> 
> > troubleshoot sshd:
> >
> >1) stop sshd:
> >    /etc/init.d/sshd stop
> >2) start sshd with debugging:
> >    sshd -d -d -d
> >3) attempt to ssh in as you were before; 
> >   look through the sshd output and you should find why the key isn't
> >   working.
> >4) fix the problem, restart sshd: /etc/init.d/sshd start

the sshd error above (about binding to 0.0.0.0) shows that sshd was still
running. try `killall sshd` (from the console!) to get rid of sshd. then try
`netstat -an|grep -i list` and see of you're still listening on port 22. if so,
then most likely inetd/xinetd is listening and sshd isn't getting started until
someone attempts to connect. in this case, you'll have to temporarily disable
sshd in inetd/xinetd.

afterwards, try `sshd -d -d -d` - do not call from the /etc/init.d/sshd script,
for i doubt the debug parameters will be passed to the daemon that way. i know
it won't work that way in gentoo, at least.



More information about the FreeNX-kNX mailing list