diff options
author | jim-p <jim@pingle.org> | 2010-06-22 02:38:32 -0400 |
---|---|---|
committer | jim-p <jim@pingle.org> | 2010-06-22 02:38:32 -0400 |
commit | 4c4b068c1f448bc13d6c464371adc28021769d4f (patch) | |
tree | 57ee0109a2bc677c7a566780a8b3754e385de1e8 /etc | |
parent | e5d8408b9e70e6ae61f143f8d5b05453d24afd5c (diff) | |
download | pfsense-4c4b068c1f448bc13d6c464371adc28021769d4f.zip pfsense-4c4b068c1f448bc13d6c464371adc28021769d4f.tar.gz |
Fix ssh key existence test.
Diffstat (limited to 'etc')
-rwxr-xr-x | etc/sshd | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; } } |