Revision fe2b8de7
Added by Jose Luis Duran about 9 years ago
src/etc/sshd | ||
---|---|---|
178 | 178 |
mark_subsystem_dirty('sshdkeys'); |
179 | 179 |
echo " Generating Keys:\n"; |
180 | 180 |
foreach ($generate_keys as $key) { |
181 |
$_gb = exec("/usr/bin/nice -n20 /usr/bin/ssh-keygen -t {$key['type']} -N '' -f {$sshConfigDir}/ssh_host_{$key['suffix']}key"); |
|
181 |
$_gb = exec("/usr/bin/nice -n20 /usr/bin/ssh-keygen -t {$key['type']} -b 4096 -N '' -f {$sshConfigDir}/ssh_host_{$key['suffix']}key");
|
|
182 | 182 |
} |
183 | 183 |
clear_subsystem_dirty('sshdkeys'); |
184 | 184 |
file_notice("SSH", "{$g['product_name']} has completed creating your SSH keys. SSH is now started.", "SSH Startup", ""); |
Also available in: Unified diff
Force 4096 RSA keys
Add option `-b 4096` to force the keys to 4096-bit.
This parameter is ignored for Ed25519 keys.
(cherry picked from commit 971257cbdf687c79943237b6c2f5e37c596318af)