mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 11:43:25 +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/system-release
|
||||||
etc/issue
|
etc/issue
|
||||||
|
etc/rc.d/init.d/sshd
|
||||||
var/ipfire/langs
|
var/ipfire/langs
|
||||||
|
|||||||
@@ -45,6 +45,9 @@ extract_files
|
|||||||
sed -i /etc/ssh/sshd_config \
|
sed -i /etc/ssh/sshd_config \
|
||||||
-e 's/^#\?PermitRootLogin .*$$/PermitRootLogin yes/'
|
-e 's/^#\?PermitRootLogin .*$$/PermitRootLogin yes/'
|
||||||
|
|
||||||
|
# Move away old and unsupported keys
|
||||||
|
mv -f /etc/ssh/ssh_host_dsa_key{,.old}
|
||||||
|
|
||||||
# Start services
|
# Start services
|
||||||
/etc/init.d/dnsmasq start
|
/etc/init.d/dnsmasq start
|
||||||
/etc/init.d/sshd start
|
/etc/init.d/sshd start
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ case "$1" in
|
|||||||
evaluate_retval
|
evaluate_retval
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for algo in rsa dsa ecdsa ed25519; do
|
for algo in rsa ecdsa ed25519; do
|
||||||
keyfile="/etc/ssh/ssh_host_${algo}_key"
|
keyfile="/etc/ssh/ssh_host_${algo}_key"
|
||||||
|
|
||||||
# If the key already exists, there is nothing to do.
|
# If the key already exists, there is nothing to do.
|
||||||
|
|||||||
Reference in New Issue
Block a user