From 9e0a6a4b5e3979185b83114b050bb18b891e1f63 Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Fri, 12 Dec 2014 12:17:28 +0100 Subject: [PATCH] rc: ed25519 does not come with the current base version of FreeBSD 10.0 Avoids the regeneration of the keys on reboot. I guess this is what people would expect. ;) --- src/etc/rc.sshd | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/etc/rc.sshd b/src/etc/rc.sshd index dae1376a7..be4ea3e74 100755 --- a/src/etc/rc.sshd +++ b/src/etc/rc.sshd @@ -57,8 +57,8 @@ $keys = array( 'ssh_host_rsa_key.pub', 'ssh_host_ecdsa_key', 'ssh_host_ecdsa_key.pub', - 'ssh_host_ed25519_key', - 'ssh_host_ed25519_key.pub' + //'ssh_host_ed25519_key', + //'ssh_host_ed25519_key.pub' ); foreach($keys as $f2c) { @@ -136,7 +136,7 @@ if ($generate_keys) { mwexec("/usr/bin/ssh-keygen -t rsa -N '' -f {$sshConfigDir}/ssh_host_rsa_key"); mwexec("/usr/bin/ssh-keygen -t dsa -N '' -f {$sshConfigDir}/ssh_host_dsa_key"); mwexec("/usr/bin/ssh-keygen -t ecdsa -N '' -f {$sshConfigDir}/ssh_host_ecdsa_key"); - mwexec("/usr/bin/ssh-keygen -t ed25519 -N '' -f {$sshConfigDir}/ssh_host_ed25519_key"); + //mwexec("/usr/bin/ssh-keygen -t ed25519 -N '' -f {$sshConfigDir}/ssh_host_ed25519_key"); clear_subsystem_dirty('sshdkeys'); log_error(_('Completed creating your SSH keys. SSH will now be started.')); }