mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-05-04 02:51:28 +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
|
# Update SSH configuration
|
||||||
sed -i /etc/ssh/sshd_config \
|
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
|
# Move away old and unsupported keys
|
||||||
mv -f /etc/ssh/ssh_host_dsa_key{,.old}
|
mv -f /etc/ssh/ssh_host_dsa_key{,.old}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
###############################################################################
|
###############################################################################
|
||||||
# #
|
# #
|
||||||
# IPFire.org - A linux based firewall #
|
# IPFire.org - A linux based firewall #
|
||||||
# Copyright (C) 2007-2013 IPFire Team <info@ipfire.org> #
|
# Copyright (C) 2007-2015 IPFire Team <info@ipfire.org> #
|
||||||
# #
|
# #
|
||||||
# This program is free software: you can redistribute it and/or modify #
|
# This program is free software: you can redistribute it and/or modify #
|
||||||
# it under the terms of the GNU General Public License as published by #
|
# it under the terms of the GNU General Public License as published by #
|
||||||
@@ -91,6 +91,9 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
|
|||||||
-e 's/^#\?LogLevel INFO .*$$/LogLevel INFO/' \
|
-e 's/^#\?LogLevel INFO .*$$/LogLevel INFO/' \
|
||||||
-e 's/^#\?AllowTcpForwarding .*$$/AllowTcpForwarding no/' \
|
-e 's/^#\?AllowTcpForwarding .*$$/AllowTcpForwarding no/' \
|
||||||
-e 's/^#\?PermitRootLogin .*$$/PermitRootLogin yes/' \
|
-e 's/^#\?PermitRootLogin .*$$/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|' \
|
||||||
/etc/ssh/sshd_config
|
/etc/ssh/sshd_config
|
||||||
@rm -rf $(DIR_APP)
|
@rm -rf $(DIR_APP)
|
||||||
@$(POSTBUILD)
|
@$(POSTBUILD)
|
||||||
|
|||||||
Reference in New Issue
Block a user