diff options
Diffstat (limited to 'etc/sshd')
-rwxr-xr-x | etc/sshd | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -53,6 +53,11 @@ pclose($fd); $sshConfigDir = "/etc/ssh"; + + if (!file_exists("$sshConfigDir/ssh_host_key") and $config['ssh']['dsa'] == "") { + /* remove previous keys and regen later */ + mwexec("rm /etc/ssh/ssh_host_*"); + } if (!file_exists("$sshConfigDir/ssh_host_key") and $config['ssh']['dsa'] == "") { /* generate keys */ |