sshd error

After the computer froze in the middle of sshd configuration I cannot start the service sshd. I tried to remove the packages and then reinstall them without success.
I’m running OpenSuSE 11.3 with kde4.4.4(freezing I figure is because of the effects so I disabled them and so far it seems that that was the solution).
Anyway here is the error:
curacao:/home/dan # /etc/init.d/sshd start
Starting SSH daemonCould not load host key: /etc/ssh/ssh_host_rsa_key
Could not load host key: /etc/ssh/ssh_host_dsa_key
Disabling protocol version 2. Could not load host key
sshd: no hostkeys available – exiting.
startproc: exit status of parent of /usr/sbin/sshd: 1 failed

Note: this file is empty /etc/ssh/ssh_host_rsa_key and not sure if there was something which got borked.
in yast under services it cannot be started either and ipv6 was disabled.
I think in 11.1 a line in the hostname file I added manually something with ipv4?
ipv4-localhost ipv4-loopback if i remember correctly, but still not working in here, maybe I should restart it? I only logged off after change.

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Try deleting that /etc/ssh/ssh_host_rsa_key file. You may want to even
clean out all of the key files in there so that SSH recreates them on its
startup.

Good luck.

On 08/31/2010 12:00 PM, dmera wrote:
>
> After the computer froze in the middle of sshd configuration I cannot
> start the service sshd. I tried to remove the packages and then
> reinstall them without success.
> I’m running OpenSuSE 11.3 with kde4.4.4(freezing I figure is because of
> the effects so I disabled them and so far it seems that that was the
> solution).
> Anyway here is the error:
> curacao:/home/dan # /etc/init.d/sshd start
> Starting SSH daemonCould not load host key: /etc/ssh/ssh_host_rsa_key
> Could not load host key: /etc/ssh/ssh_host_dsa_key
> Disabling protocol version 2. Could not load host key
> sshd: no hostkeys available – exiting.
> startproc: exit status of parent of /usr/sbin/sshd: 1
> failed
>
> Note: this file is empty /etc/ssh/ssh_host_rsa_key and not sure if
> there was something which got borked.
> in yast under services it cannot be started either and ipv6 was
> disabled.
> I think in 11.1 a line in the hostname file I added manually something
> with ipv4?
> ipv4-localhost ipv4-loopback if i remember correctly, but still not
> working in here, maybe I should restart it? I only logged off after
> change.
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.15 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJMfUf6AAoJEF+XTK08PnB5R6wP/18jZ45jOMLtY2F+KSKo1kaO
Tm6CQr/IbTdyFjJ2Vquyu4NXyztlcYBrKyEnSecWWUKR44LzB6cAfGhE7Lf60s3v
qzkSR/3v6ii+XEFmicH2/qcKY8/7dP//17dwy03GhY5n0XRzAlarSyhTb0vj1Ekx
s/Oo6SpNLUZmWmBPkAxCDvph7PXmQzkYQ02EylQ0dPABlsUYk2a8b94JF7BJhI85
9h3LpYK5Xg4EklfiRxaL42CfqamsalY1WLZVBfbA8/umKsW87MbZ6OYLLzAu70Qt
Fehm5zJ3NOwqUv2L/0G6vLRkXdcNuN2ipV0QkWwcmFaxmRigKsM0REJWPYgc4a3+
21n0p/2df86a9JySipz02uj5oEVAnr+n3FkXt5/bJG8cBgHYuYm7Enp5N0PU16qv
Z/a2DD+Y4lhBGhw+StIQKh/8TLAoSahG6aXXSJikdMk6xDCMz5+uVAnomFfKYquG
qqkS7sEi+ZmOoy+4kiT+mw9pJy4YGvylMAM91AhltRR5V34KG7jo+lN6nyeKZ0f+
6S+8EakB0UukQAKv0ilQFEqL9k6LmUWVrbDH7gJHCyxBv3LCQqGXuvuWIx2YasSa
xkPy64RUeE1x3aH3HC5VgXNzoVV3oAldMaAq/YT9KlsRw+Xhz1AgJWCjY6wnppjs
vIYFkXjtp8VMU0mEO7LH
=8JDO
-----END PGP SIGNATURE-----

Thank you ab@novell.com. That was the solution. I think the files were created with 0 bites and then the KDE froze(had to hard reboot) and that created the problem.

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Glad to hear it! Thanks for posting back.

Good luck.

On 08/31/2010 02:06 PM, dmera wrote:
>
> Thank you ab@novell.com. That was the solution. I think the files were
> created with 0 bites and then the KDE froze(had to hard reboot) and that
> created the problem.
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.15 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJMfXkCAAoJEF+XTK08PnB5fekQAMjUCyIpw7EdjW8yDNi7YTs2
eTLrqmjOk2smHuW2sPG4XNI8TxHN1AOcRMBJkLCss8KifRi7WcBHi1APqfMhPRbj
3pnZDHdA58yrXU+20N/aEWPkCm16rmKx7H8QbS7wroKRsRHeDN1qE0YUIkDz8BG2
ekzfysqSwZ8UF62od+g35R1IaObmMBOCYFYCm9u+OhAzDq1jFm/wUIfLeE7U9brj
nstxUTHI93jHiMOzKWKtOGb141U6RmJkCzM/YodSHehyGus6YCO7rLB29nzMGMUS
yZJpfVV1Izrylm7EfwesDEy+9FPAxwWoeG0cFcNU1wkZVcOfMsFRpuGSzUsx0+MY
WKBnyF369OLq0NjtiFeAY786yPvl/O2bvU1oM88wWhonlGGlT5BBf4I4ZWhcWHBx
IZXayHpOLoM0vrYuV7STzJ+F2BpNl1mgeNd6BIVLLb3zUz2TSENn0d7pwCaHoOZk
LwpjBCZbunpsnkrAzilUMWBK1X2csRMS8Y/+AN77VFxv0d/tehA9sclSCRVxV+Tb
90qRPM1rrJ658VFvmUUiIZdp6SS/w1OiKKtWKMmtmugrLPzdDnebKQmWwUGJNu7/
dgDHsa5z1j0e33C4YMOE23ee4wAyNsEf/bmBMKfHhRsVxWfbnhnj+f0CJ8mBz2HQ
R1xZyMNoUbXVeol5W1nq
=i+m2
-----END PGP SIGNATURE-----