From 850b71ec84084c60dbfcbea8f2d1668486eabf28 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sun, 17 Jul 2005 19:30:07 +0000 Subject: Make sure config.xml doesn't hold ssh keys for now --- etc/sshd | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'etc/sshd') diff --git a/etc/sshd b/etc/sshd index 1c91154..b2ecf6e 100755 --- a/etc/sshd +++ b/etc/sshd @@ -68,7 +68,15 @@ pclose($fd); $sshConfigDir = "/etc/ssh"; - + + unset($config['ssh']['dsa_key']); + unset($config['ssh']['rsa_key']); + unset($config['ssh']['rsa1_key']); + unset($config['ssh']['dsa']); + unset($config['ssh']['rsa']); + unset($config['ssh']['rsa1']); + write_config("Clearing SSH keys from config.xml"); + if (!file_exists("$sshConfigDir/ssh_host_key") and $config['ssh']['dsa'] == "") { /* remove previous keys and regen later */ mwexec("rm /etc/ssh/ssh_host_*"); -- cgit v1.1