You are not logged in.

#1 2007-09-30 12:35:33

kayard
Member
Registered: 2007-09-30
Posts: 5

[SOLVED] SSHD fails to start

Hi to everyone.

his is my 1st post and the second day I have bee playng with arch linux. I installed everythig up to gnome and everything worked just fine. Nevertheless I'm a newbie and I didn't manage to have sshd working. I followed the wiki but it simply fails to start (either at boottime or from commandline)

The error message is:

:: Starting Secure Shell Deamon         [FAIL]

What can I do ?

Thanks in advance for any help

Paolo

Italy

Last edited by kayard (2007-09-30 16:27:50)

Offline

#2 2007-09-30 12:47:45

kayard
Member
Registered: 2007-09-30
Posts: 5

Re: [SOLVED] SSHD fails to start

well it might have something to do with my network config since i cannot ping my router even though IFCONFIG ETH1 output seems fine. ROUTE output seems fine too. Bringing down ETH1 and UP again followed by ROUTE ADD DEFAULT GW 192.168. xxx.xxx doesn't help either. DHCPCD ETH1 didn't work too...

Last edited by kayard (2007-09-30 12:48:17)

Offline

#3 2007-09-30 13:17:28

kayard
Member
Registered: 2007-09-30
Posts: 5

Re: [SOLVED] SSHD fails to start

I managed to fix the network problem (ehich apparently occurred after my first attempt to start sshd) but the problem remains.  I cannot start sshd. Any idea ? i searched in the forum and seemed that someone else had the same problem, solved it but didn't reported the solution.

Thanks

Offline

#4 2007-09-30 13:38:24

robertp
Member
From: Warszawa, Poland
Registered: 2007-09-11
Posts: 123

Re: [SOLVED] SSHD fails to start

Run as root:

 /usr/sbin/sshd -ddd -D

Output from this command may help you diagnose the problem.

Last edited by robertp (2007-09-30 13:38:38)

Offline

#5 2007-09-30 14:22:51

kayard
Member
Registered: 2007-09-30
Posts: 5

Re: [SOLVED] SSHD fails to start

Well, thanks for your advice. Among other things which does not seem critical (complains about not having the keys) I get this error message:

Bind to port 22 on 0.0.0.0.
Bind to port 22 on 0.0.0.0. failed: Address already in use.
Cannot bind any address.

I tried changng ListenAddress in the config file from 0.0.0.0 to my eth0 address (static) but didn't help.

For the record I have arch installed on another computer and sshd worked fine without changing anything (i mean it started then i couldn't connect because i haven't modified the .allow .deny files yet but at least it started)

What does it mean and what should I do ?

Offline

#6 2007-09-30 14:30:44

Pudge
Arch Linux f@h Team Member
Registered: 2006-01-23
Posts: 300

Re: [SOLVED] SSHD fails to start

Try this guide http://home.comcast.net/~pudges-place/s … page1.html and see if it helps.

Pudge

Offline

#7 2007-09-30 15:12:36

robertp
Member
From: Warszawa, Poland
Registered: 2007-09-11
Posts: 123

Re: [SOLVED] SSHD fails to start

Probably something is already using port 22 (maybe sshd is already running).
See output of:

nmap -sV -p 22 localhost

Offline

#8 2007-09-30 16:27:30

kayard
Member
Registered: 2007-09-30
Posts: 5

Re: [SOLVED] SSHD fails to start

I'm not sure why but it works ... and Yes the reason why I was getting "FAILED" when trying to start sshd is because it was already working on port 22.

I didn't realized this earlier because I couldn't connect from another computer and I thought that was the reason while, in fact, was something else ...

(for the sake of knowledge during setup my ethernet card was eth1 and after setup the kernel set it up as eth0 but boot-time scripts didn't complain therefore the sistem booted flawlessy with a eth1 apparently working. Changing in rc.conf from eth1 to eth0 solved the problem)

By the way thanks for the guide and the nmap tip which will cam handy in the future.

Paolo

Offline

Board footer

Powered by FluxBB