summaryrefslogtreecommitdiffstats
path: root/etc/sshd
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-07-17 20:10:52 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-07-17 20:10:52 +0000
commitc3290534cb15c2f615699f68834947628cf94c38 (patch)
tree00fe8e297130c37d3da52337b140ef3a4bc991dd /etc/sshd
parent855a098649ebf5e47dcfdc7c9ed1c261c948e765 (diff)
downloadpfsense-c3290534cb15c2f615699f68834947628cf94c38.zip
pfsense-c3290534cb15c2f615699f68834947628cf94c38.tar.gz
Do not check on config.xml items right now.
Diffstat (limited to 'etc/sshd')
-rwxr-xr-xetc/sshd5
1 files changed, 3 insertions, 2 deletions
diff --git a/etc/sshd b/etc/sshd
index aa874a5..16e7a5e 100755
--- a/etc/sshd
+++ b/etc/sshd
@@ -95,8 +95,9 @@
unset($config['ssh']['rsa1']);
unset($config['ssh']['ak']);
write_config("Clearing SSH keys from config.xml");
-
- if (!file_exists("$sshConfigDir/ssh_host_key") and $config['ssh']['dsa'] == "") {
+
+ //if (!file_exists("$sshConfigDir/ssh_host_key") and $config['ssh']['dsa'] == "") {
+ if (!file_exists("$sshConfigDir/ssh_host_key")) {
/* remove previous keys and regen later */
mwexec("rm /etc/ssh/ssh_host_*");
system("/usr/bin/ssh-keygen -t rsa1 -N '' -f $sshConfigDir/ssh_host_key");
OpenPOWER on IntegriCloud