Don't copy dsa host key but copy ecdsa and ed25519 if present

This commit is contained in:
Victor LABORIE 2017-07-21 16:00:37 +02:00
parent 4cbe721eb6
commit 4b86284ca0

5
bkctld
View file

@ -178,8 +178,9 @@ mk_jail() {
echo "2 - Copying essential files"
cp /proc/devices proc
cp /etc/ssh/ssh_host_rsa_key etc/ssh
cp /etc/ssh/ssh_host_dsa_key etc/ssh
[ -f /etc/ssh/ssh_host_rsa_key ] && cp /etc/ssh/ssh_host_rsa_key etc/ssh
[ -f /etc/ssh/ssh_host_ecdsa_key ] && cp /etc/ssh/ssh_host_ecdsa_key etc/ssh
[ -f /etc/ssh/ssh_host_ed25519_key ] && cp /etc/ssh/ssh_host_ed25519_key etc/ssh
cp "$passwd" etc
cp "$shadow" etc
cp "$group" etc