summaryrefslogtreecommitdiffstats
path: root/etc/sshd
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-07-24 21:38:12 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-07-24 21:38:12 +0000
commit0ae71d819b9c0656a054106aad0e8f978454fea0 (patch)
tree41980dbf58b3f0dc997f8d052bc1938304b56e62 /etc/sshd
parent4093cb99afb2c01aca17a1846416d11ad955a6b7 (diff)
downloadpfsense-0ae71d819b9c0656a054106aad0e8f978454fea0.zip
pfsense-0ae71d819b9c0656a054106aad0e8f978454fea0.tar.gz
Mount config rw before generating keys
Diffstat (limited to 'etc/sshd')
-rwxr-xr-xetc/sshd1
1 files changed, 1 insertions, 0 deletions
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");
OpenPOWER on IntegriCloud