4.4 sshd didn't start

2008-11-03 Thread elflord woods
hello
i've just installed 4.4 and answered yes during installation for the default
start of sshd

yet the sshd didn't start after reboot

and then i add enable_sshd=YES in /etc/rc.local
but then it complains that it could not load host key

i couldn't find documents on how to start the sshd service

what can i do ?

thanks



Re: 4.4 sshd didn't start

2008-11-03 Thread soko.tica
On 11/3/08, elflord woods [EMAIL PROTECTED] wrote:

 and then i add enable_sshd=YES in /etc/rc.local

You should enable it in /etc/rc.conf , not in /etc/rc.local



Re: 4.4 sshd didn't start

2008-11-03 Thread Lars Noodén
elflord woods wrote:
 but then it complains that it could not load host key

There's your clue.

 i couldn't find documents on how to start the sshd service

http://www.openbsd.org/cgi-bin/man.cgi?query=sshd_config
http://www.openbsd.org/cgi-bin/man.cgi?query=sshd

 what [else] can i do ?

Check your logs.

Regards
-Lars



Re: 4.4 sshd didn't start

2008-11-03 Thread Bryan Irvine
On Mon, Nov 3, 2008 at 11:28 AM, elflord woods [EMAIL PROTECTED] wrote:
 hello
 i've just installed 4.4 and answered yes during installation for the default
 start of sshd

 yet the sshd didn't start after reboot

 and then i add enable_sshd=YES in /etc/rc.local
 but then it complains that it could not load host key

Should be in rc.conf.local?

-B



Re: 4.4 sshd didn't start

2008-11-03 Thread johan beisser

On Nov 3, 2008, at 11:28 AM, elflord woods wrote:


hello
i've just installed 4.4 and answered yes during installation for the  
default

start of sshd

yet the sshd didn't start after reboot

and then i add enable_sshd=YES in /etc/rc.local
but then it complains that it could not load host key


Add 'sshd_flags=' to /etc/rc.conf.local.

The host keys are generated on first run by ssh-keygen(1), called  
from  rc(8) if /etc/ssh/ssh_hos_{rsa,dsa}_key doesn't exist. You can  
create them manually, if you want to, just dig through /etc/rc until  
you see ssh_keygen called to find out how.




Re: 4.4 sshd didn't start

2008-11-03 Thread Rogier Krieger
On Mon, Nov 3, 2008 at 21:08, Bryan Irvine [EMAIL PROTECTED] wrote:
 Should be in rc.conf.local?

If I'm not mistaken [1], you will only see a change in
/etc/rc.conf.local if you select 'no' for starting sshd by default.


To the OP:

 On Mon, Nov 3, 2008 at 11:28 AM, elflord woods [EMAIL PROTECTED] wrote:
 and then i add enable_sshd=YES in /etc/rc.local

The flag name should probably be sshd_flags and not enable_sshd. When
in doubt: look at /etc/rc.conf, but be sure to save changes to
/etc/rc.conf.local to survive upgrades, etc.

If you do not see sshd(8) starting upon reboot yet have selected
'yes', you would do best to check your logs and see where the problem
is. Did you change any files relating to sshd?


 but then it complains that it could not load host key

What message are you getting w.r.t. the host keys? Report what errors
you see instead of letting others guess. If e.g. you are trying to
write to a read-only location, the (logs of the) boot up sequence may
give useful clues.

Regards,

Rogier


References:
1. OpenBSD CVSweb - src/distrib/miniroot/install.sub - r1.436
http://www.openbsd.org/cgi-bin/cvsweb/src/distrib/miniroot/install.sub?rev=1.436

-- 
If you don't know where you're going, any road will get you there.