Yup, I know there's an SSH mailing list at clinet.fi, but while others
have asked this question on the list, I've never seen it answered
... so perhaps someone in the broader community will have an idea.

I'm trying to automate the install of Red Hat 6.0 on many
machines.  This works well with a combination of kickstart and a Perl
script that I wrote to do the configuration.  Trouble is, I'm having
no luck getting unique hostkeys generated for SSH.  

The docs distributed with SSH suggest that I should be able to
generate keys as root, copy them to /etc/ssh2/hostkey and
/etc/ssh2/hostkey.pub, and go.  Doesn't work; when I try to start
sshd, it complains:

FATAL: ssh_privkey_read from /etc/ssh2/hostkey failed.

Also tried directing the key creation to /etc/ssh2/hostkey using the
-f switch specified in the documentation.  That just returns a usage
message, which doesn't list an -f switch.  Also tried this:

ssh-keygen2 -P -b 1024 -t dsa -c "1024-bit dsa hostkey" -o \
/etc/ssh2/hostkey

Again, the usage message.

What's going on?  There must be some way other than "make install" to
generate a new hostkey.

Thank you for any ideas.
-d

-- 
David Talkington
Community Networking Initiative
[EMAIL PROTECTED]
244-1962


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.

Reply via email to