summaryrefslogtreecommitdiffstats
path: root/etc/sshd
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-09-19 01:00:58 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-09-19 01:00:58 +0000
commite13383753016d29e5501f33da94fb55da16b8116 (patch)
treec57fc3e456c09810b09908cf6dee7f7e00c3f8bd /etc/sshd
parent57989da545f500a2904d188c5207f470b53a4242 (diff)
downloadpfsense-e13383753016d29e5501f33da94fb55da16b8116.zip
pfsense-e13383753016d29e5501f33da94fb55da16b8116.tar.gz
Create SSH keys with a nice of 20
Diffstat (limited to 'etc/sshd')
-rwxr-xr-xetc/sshd12
1 files changed, 6 insertions, 6 deletions
diff --git a/etc/sshd b/etc/sshd
index 2b545cc..a827fb3 100755
--- a/etc/sshd
+++ b/etc/sshd
@@ -94,9 +94,9 @@
conf_mount_rw();
mwexec("rm /etc/ssh/ssh_host_*");
echo "\n";
- 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/bin/nice -n20 /usr/bin/ssh-keygen -t rsa1 -N '' -f $sshConfigDir/ssh_host_key");
+ system("/usr/bin/nice -n20 /usr/bin/ssh-keygen -t rsa -N '' -f $sshConfigDir/ssh_host_rsa_key");
+ system("/usr/bin/nice -n20 /usr/bin/ssh-keygen -t dsa -N '' -f $sshConfigDir/ssh_host_dsa_key");
}
@@ -108,9 +108,9 @@
if (!file_exists("$sshConfigDir/ssh_host_key") and $config['ssh']['dsa'] == "") {
/* generate keys */
- 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/bin/nice -n20 /usr/bin/ssh-keygen -t rsa1 -N '' -f $sshConfigDir/ssh_host_key");
+ system("/usr/bin/nice -n20 /usr/bin/ssh-keygen -t rsa -N '' -f $sshConfigDir/ssh_host_rsa_key");
+ system("/usr/bin/nice -n20 /usr/bin/ssh-keygen -t dsa -N '' -f $sshConfigDir/ssh_host_dsa_key");
/* save keys */
$dsa = file_get_contents("{$sshConfigDir}/ssh_host_dsa_key");
OpenPOWER on IntegriCloud