Opened 16 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 , 16 years ago
comment:2 by , 16 years ago
cat build/jam/UserBuildConfig | grep ROOT
HAIKU_ROOT_USER_REAL_NAME = Diver ;
It has been added month ago.
comment:4 by , 16 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:6 by , 16 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
comment:7 by , 15 years ago
Resolution: | invalid |
---|---|
Status: | closed → reopened |
This still seems to be a problem in R1 alpha1: After generating the rsa/dsa hostkeys I get the exact error above.
follow-up: 9 comment:8 by , 15 years ago
Cc: | added |
---|
Please try again with a build newer the hrev33509, as that may have fixed this again.
comment:9 by , 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:11 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
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.