mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
Do not create any DSA keys any more
DSA is considered weak cryptography Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
etc/system-release
|
||||
etc/issue
|
||||
etc/rc.d/init.d/sshd
|
||||
var/ipfire/langs
|
||||
|
||||
@@ -45,6 +45,9 @@ extract_files
|
||||
sed -i /etc/ssh/sshd_config \
|
||||
-e 's/^#\?PermitRootLogin .*$$/PermitRootLogin yes/'
|
||||
|
||||
# Move away old and unsupported keys
|
||||
mv -f /etc/ssh/ssh_host_dsa_key{,.old}
|
||||
|
||||
# Start services
|
||||
/etc/init.d/dnsmasq start
|
||||
/etc/init.d/sshd start
|
||||
|
||||
@@ -18,7 +18,7 @@ case "$1" in
|
||||
evaluate_retval
|
||||
fi
|
||||
|
||||
for algo in rsa dsa ecdsa ed25519; do
|
||||
for algo in rsa ecdsa ed25519; do
|
||||
keyfile="/etc/ssh/ssh_host_${algo}_key"
|
||||
|
||||
# If the key already exists, there is nothing to do.
|
||||
|
||||
Reference in New Issue
Block a user