The following header lines retained to affect attribution:
|Date: Wed, 05 Jan 2000 09:16:16 -0500
|From: "Mark E. Drummond" <[EMAIL PROTECTED]>
|To: [EMAIL PROTECTED]
|Subject: gen a host key?

|I am looking at ssh-keygen and asking myself, ok, how the heck do I use
|it to create a new host key? I've done this before, but, my bad, I did
|not write down how I did it ... a thousand lashings ...

|___________________________________________________
|Mark Drummond|ICQ#19153754|mailto:[EMAIL PROTECTED]
|      Gang Warily|http://signals.rmc.ca/

Quoting from the ssh Makefile:

install_prefix  =

HOST_KEY_FILE   = $(etcdir)/ssh_host_key

etcdir          = /etc

# Creates /etc/ssh_host_key
generate-host-key:
        -@if test -f $(install_prefix)$(HOST_KEY_FILE); \
          then echo "You already have a host key in 
$(install_prefix)$(HOST_KEY_FILE)."; \
          else \
            umask 022; echo "Generating 1024 bit host key."; \
            ./ssh-keygen -b 1024 -f $(install_prefix)$(HOST_KEY_FILE) -N ''; \

That is,

   ssh-keygen -b 1024 -f /etc/ssh_host_key -N ''

Randolph J. Herber, [EMAIL PROTECTED], +1 630 840 2966, CD/CDFTF PK-149F,
Mail Stop 318, Fermilab, Kirk & Pine Rds., PO Box 500, Batavia, IL 60510-0500,
USA.  (Speaking for myself and not for US, US DOE, FNAL nor URA.)  (Product,
trade, or service marks herein belong to their respective owners.)

Reply via email to