Re: Frage zu SSH

From: Andy Wolf <andy.wolf(at)schwaben.de>
Date: Fri, 20 Feb 2004 09:53:30 +0100

Hallo,

Thomas Zastrow wrote:
> Wenn ich - wie im Handbuch beschrieben - einfach den sshd per Hand starte gibts auch eine Fehlermeldung:
>
> Could not load hostkey: /etc/ssh/ssh_host_key
> Could not load hostkey: /etc/ssh/ssh_host_dsa_key
> Disabling protocol version 1. Could not load host key
> Disabling protocol version 2. Could not load host key
> sshd: no hostkey available -- exiting.
>
> Da scheint wohl was zu fehlen ... aber Goggle hat mir auch nicht weitergeholfen ...

Beim Booten sollten die Keys eigentlich durch das Skript /etc/rc.d/sshd
erzeugt werden. Dort wird /usr/bin/ssh-keygen aufgerufen bevor der
Daemon gestartet wird, _sofern_ dieses Skript vorhanden ist und einer
der Keys nicht existiert...

---
         if [ ! -f /etc/ssh/ssh_host_key -o \
             ! -f /etc/ssh/ssh_host_dsa_key -o \
             ! -f /etc/ssh/ssh_host_rsa_key ]; then
                 run_rc_command keygen
         fi
---
Schau dir am besten mal das rc.d-Skript (in /etc nicht /usr/local/etc !) 
an...
Andy
To Unsubscribe: send mail to majordomo(at)de.FreeBSD.org
with "unsubscribe de-bsd-questions" in the body of the message
Received on Fri 20 Feb 2004 - 09:59:03 CET

search this site