diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-07-09 18:13:34 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-07-09 18:13:34 +0000 |
commit | abafa16bca2985bf336279503e09411de4dda92d (patch) | |
tree | f91dbb9605e89ca6f4552f3492756ae6a5c68274 /etc/sshd | |
parent | 8d8f8970631304cad937764ea8ab495d6d5797ae (diff) | |
download | pfsense-abafa16bca2985bf336279503e09411de4dda92d.zip pfsense-abafa16bca2985bf336279503e09411de4dda92d.tar.gz |
Turn off SSH key saving and restoring until bugs are fixed.
Diffstat (limited to 'etc/sshd')
-rwxr-xr-x | etc/sshd | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -57,6 +57,12 @@ if (!file_exists("$sshConfigDir/ssh_host_key") and $config['ssh']['dsa'] == "") { /* 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"); + system("/usr/bin/ssh-keygen -t rsa -N '' -f $sshConfigDir/ssh_host_rsa_key"); + system("/usr/bin/ssh-keygen -t dsa -N '' -f $sshConfigDir/ssh_host_dsa_key"); + system("/usr/sbin/sshd"); + system("/etc/rc.d/sshd start"); + exit; } if (!file_exists("$sshConfigDir/ssh_host_key") and $config['ssh']['dsa'] == "") { @@ -120,6 +126,7 @@ } /* start sshd */ + system("/usr/sbin/sshd"); system("/etc/rc.d/sshd start"); fwrite($stderr, "Done.\n"); |