summaryrefslogtreecommitdiffstats
path: root/etc/sshd
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2010-06-18 10:47:03 -0400
committerjim-p <jimp@pfsense.org>2010-06-18 10:47:03 -0400
commite28f5b9343d8455f805cdecd402c0bef493fb121 (patch)
treec79b0fbf519c3d457ca489c63135404df2b369c9 /etc/sshd
parent1fea67419a5c7042e06d9ff0740bbfee97a05bad (diff)
downloadpfsense-e28f5b9343d8455f805cdecd402c0bef493fb121.zip
pfsense-e28f5b9343d8455f805cdecd402c0bef493fb121.tar.gz
Silence
Diffstat (limited to 'etc/sshd')
-rwxr-xr-xetc/sshd4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/sshd b/etc/sshd
index 285cf65..a700615 100755
--- a/etc/sshd
+++ b/etc/sshd
@@ -64,7 +64,7 @@
foreach($files_to_check as $f2c) {
if(file_exists("/etc/ssh/{$f2c}"))
if(file_size("/etc/ssh/{$f2c}")==0) {
- mwexec("rm /etc/ssh/ssh_host*");
+ mwexec("rm /etc/ssh/ssh_host*", true);
}
}
@@ -138,7 +138,7 @@
if (!file_exists("$sshConfigDir/ssh_host_key")) {
/* remove previous keys and regen later */
file_notice("SSH", "{$g['product_name']} has started creating your SSH keys. SSH Startup will be delayed. Please note that reloading the filter rules and changes will be delayed until this operation is completed.", "SSH KeyGen", "");
- mwexec("rm /etc/ssh/ssh_host_*");
+ mwexec("rm /etc/ssh/ssh_host_*", true);
mark_subsystem_dirty('sshdkeys');
echo " Generating Keys:\n";
system("/usr/bin/nice -n20 /usr/bin/ssh-keygen -t rsa1 -N '' -f $sshConfigDir/ssh_host_key");
OpenPOWER on IntegriCloud