mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 19:23:24 +02:00
openssh: disable dsa key usage.
fixes #10934 Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
@@ -47,7 +47,10 @@ telinit u
|
||||
|
||||
# Update SSH configuration
|
||||
sed -i /etc/ssh/sshd_config \
|
||||
-e 's/^#PermitRootLogin yes$/PermitRootLogin yes/'
|
||||
-e 's/^#PermitRootLogin yes$/PermitRootLogin yes/' \
|
||||
-e 's|^#\?HostKey /etc/ssh/ssh_host_rsa_key$|HostKey /etc/ssh/ssh_host_rsa_key|' \
|
||||
-e 's|^#\?HostKey /etc/ssh/ssh_host_ecdsa_key$|HostKey /etc/ssh/ssh_host_ecdsa_key|' \
|
||||
-e 's|^#\?HostKey /etc/ssh/ssh_host_ed25519_key$|HostKey /etc/ssh/ssh_host_ed25519_key|' \
|
||||
|
||||
# Move away old and unsupported keys
|
||||
mv -f /etc/ssh/ssh_host_dsa_key{,.old}
|
||||
|
||||
Reference in New Issue
Block a user