From 0ae71d819b9c0656a054106aad0e8f978454fea0 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sun, 24 Jul 2005 21:38:12 +0000 Subject: Mount config rw before generating keys --- etc/sshd | 1 + 1 file changed, 1 insertion(+) diff --git a/etc/sshd b/etc/sshd index ece1d21..2bee72f 100755 --- a/etc/sshd +++ b/etc/sshd @@ -82,6 +82,7 @@ //if (!file_exists("$sshConfigDir/ssh_host_key") and $config['ssh']['dsa'] == "") { if (!file_exists("$sshConfigDir/ssh_host_key")) { /* remove previous keys and regen later */ + conf_mount_rw(); mwexec("rm /etc/ssh/ssh_host_*"); system("/usr/bin/ssh-keygen -t rsa1 -N '' -f $sshConfigDir/ssh_host_key"); system("/usr/bin/ssh-keygen -t rsa -N '' -f $sshConfigDir/ssh_host_rsa_key"); -- cgit v1.1