Opened 17 years ago

Closed 15 years ago

#2428 closed bug (fixed)

[sshd] can't start sshd

Reported by: diver Owned by: axeld
Priority: normal Milestone: R1
Component: Applications/Command Line Tools Version: R1/pre-alpha1
Keywords: Cc: haiku@…
Blocked By: Blocking:
Platform: All

Description

When i try to start sshd from Terminal i get the following message:

Could not load host key: /boot/home/config/etc/ssh_host_rsa_key
Could not load host key: /boot/home/config/etc/ssh_host_dsa_key
Disabling protocol version 2. Could not load host key
sshd: no hostkeys available -- exiting.



cat /boot/beos/etc/passwd

sshd:x:1001:100:sshd user:/var/empty:/bin/true
baron:x:0:0:Diver:/boot/home:/bin/bash

Change History (11)

comment:1 by anevilyak, 17 years ago

That sounds like what happens if you have no image host name set. Assuming you're building your own, add something like:

HAIKU_IMAGE_HOST_NAME = test ;

To your UserBuildConfig.

comment:2 by diver, 17 years ago

cat build/jam/UserBuildConfig | grep ROOT HAIKU_ROOT_USER_REAL_NAME = Diver ;

It has been added month ago.

comment:3 by mmlr, 17 years ago

It's about the host name though, not the root user.

comment:4 by diver, 17 years ago

Yeah, my bad. Would be nice if HAIKU_IMAGE_HOST_NAME would be set to some default value (baron?) if not overriden by user.

comment:5 by diver, 16 years ago

This should be closed as invalid.

comment:6 by bonefish, 16 years ago

Resolution: invalid
Status: newclosed

comment:7 by bbarker, 15 years ago

Resolution: invalid
Status: closedreopened

This still seems to be a problem in R1 alpha1: After generating the rsa/dsa hostkeys I get the exact error above.

comment:8 by scottmc, 15 years ago

Cc: haiku@… added

Please try again with a build newer the hrev33509, as that may have fixed this again.

in reply to:  8 comment:9 by siarzhuk, 15 years ago

I think it was not "broken" because worked for me already about 3-4 month. The things to check:

1) The access rights for the key files - only owner should can read and write them;

2) Host files must be generated with correct options:

ssh-keygen -t dsa -f /boot/common/etc/ssh_host_dsa_key
ssh-keygen -t rsa -f /boot/common/etc/ssh_host_rsa_key

3) Password for the user must be set to non-empty - just use "passwrd" command to changing it from default empty one to something meaningful.

Hope it helps. :-)

comment:10 by diver, 15 years ago

This one could probably be closed.

comment:11 by bonefish, 15 years ago

Resolution: fixed
Status: reopenedclosed
Note: See TracTickets for help on using tickets.