diff options
author | veego <veego> | 2001-10-19 09:42:08 +0000 |
---|---|---|
committer | veego <veego> | 2001-10-19 09:42:08 +0000 |
commit | f1fa9ec9f6fe86d5e097c2c183870f79e1984396 (patch) | |
tree | 3cd94c3c1fedec11220bd680a943423f0142291b /security/openssh | |
parent | baf8c620dae7b88e8800b932151420fb424a9ad3 (diff) | |
download | pkgsrc-f1fa9ec9f6fe86d5e097c2c183870f79e1984396.tar.gz |
Use @SSH_PID_DIR@.
Generate ssh_host_rsa_key and use a newer syntax of ssh-keygen to create
ssh_host_key and ssh_host_dsa_key.
Diffstat (limited to 'security/openssh')
-rw-r--r-- | security/openssh/files/sshd.sh | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/security/openssh/files/sshd.sh b/security/openssh/files/sshd.sh index acb43fca99c..c8d808f010f 100644 --- a/security/openssh/files/sshd.sh +++ b/security/openssh/files/sshd.sh @@ -1,12 +1,12 @@ #!/bin/sh # -# $NetBSD: sshd.sh,v 1.5 2000/09/20 04:49:19 jlam Exp $ +# $NetBSD: sshd.sh,v 1.6 2001/10/19 09:42:08 veego Exp $ # # PROVIDE: sshd # REQUIRE: DAEMON LOGIN name="sshd" -pidfile="/var/run/${name}.pid" +pidfile="@SSH_PID_DIR@/${name}.pid" command=${1:-start} @@ -14,11 +14,15 @@ case ${command} in start) if [ ! -f @SSH_CONF_DIR@/ssh_host_key ] then - @PREFIX@/bin/ssh-keygen -b 1024 -N "" -f /etc/ssh_host_key + @PREFIX@/bin/ssh-keygen -t rsa1 -N "" -f /etc/ssh_host_key + fi + if [ ! -f @SSH_CONF_DIR@/ssh_host_rsa_key ] + then + @PREFIX@/bin/ssh-keygen -t rsa -N "" -f /etc/ssh_host_rsa_key fi if [ ! -f @SSH_CONF_DIR@/ssh_host_dsa_key ] then - @PREFIX@/bin/ssh-keygen -d -N "" -f /etc/ssh_host_dsa_key + @PREFIX@/bin/ssh-keygen -t dsa -N "" -f /etc/ssh_host_dsa_key fi if [ -x @PREFIX@/sbin/sshd -a -f @SSH_CONF_DIR@/sshd_config ] then |