diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-07-17 19:30:07 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-07-17 19:30:07 +0000 |
commit | 850b71ec84084c60dbfcbea8f2d1668486eabf28 (patch) | |
tree | 7f51b47eb6e869bc2151ff254da7c7f834ea856a | |
parent | d7e431681aa278b42e0245dda69cb3964164fe8c (diff) | |
download | pfsense-850b71ec84084c60dbfcbea8f2d1668486eabf28.zip pfsense-850b71ec84084c60dbfcbea8f2d1668486eabf28.tar.gz |
Make sure config.xml doesn't hold ssh keys for now
-rwxr-xr-x | etc/sshd | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -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_*"); |