summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorjim-p <jim@pingle.org>2010-06-22 02:38:32 -0400
committerjim-p <jim@pingle.org>2010-06-22 02:38:32 -0400
commit4c4b068c1f448bc13d6c464371adc28021769d4f (patch)
tree57ee0109a2bc677c7a566780a8b3754e385de1e8 /etc
parente5d8408b9e70e6ae61f143f8d5b05453d24afd5c (diff)
downloadpfsense-4c4b068c1f448bc13d6c464371adc28021769d4f.zip
pfsense-4c4b068c1f448bc13d6c464371adc28021769d4f.tar.gz
Fix ssh key existence test.
Diffstat (limited to 'etc')
-rwxr-xr-xetc/sshd3
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/sshd b/etc/sshd
index 2a61afc..1b54355 100755
--- a/etc/sshd
+++ b/etc/sshd
@@ -136,9 +136,10 @@
}
// Check for all needed key files. If any are missing, the keys need to be regenerated.
+ $files_to_check = array('ssh_host_dsa_key','ssh_host_dsa_key.pub','ssh_host_key','ssh_host_key.pub','ssh_host_rsa_key','ssh_host_rsa_key.pub');
$generate_keys = false;
foreach ($files_to_check as $f2c) {
- if (!file_exists($f2c)) {
+ if (!file_exists("/etc/ssh/{$f2c}")) {
$generate_keys = true;
}
}
OpenPOWER on IntegriCloud