summaryrefslogtreecommitdiffstats
path: root/etc/sshd
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-07-09 18:13:34 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-07-09 18:13:34 +0000
commitabafa16bca2985bf336279503e09411de4dda92d (patch)
treef91dbb9605e89ca6f4552f3492756ae6a5c68274 /etc/sshd
parent8d8f8970631304cad937764ea8ab495d6d5797ae (diff)
downloadpfsense-abafa16bca2985bf336279503e09411de4dda92d.zip
pfsense-abafa16bca2985bf336279503e09411de4dda92d.tar.gz
Turn off SSH key saving and restoring until bugs are fixed.
Diffstat (limited to 'etc/sshd')
-rwxr-xr-xetc/sshd7
1 files changed, 7 insertions, 0 deletions
diff --git a/etc/sshd b/etc/sshd
index 207ebc8..36a027c 100755
--- a/etc/sshd
+++ b/etc/sshd
@@ -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");
OpenPOWER on IntegriCloud