summaryrefslogtreecommitdiffstats
path: root/etc/sshd
diff options
context:
space:
mode:
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