Don't copy dsa host key but copy ecdsa and ed25519 if present
This commit is contained in:
parent
4cbe721eb6
commit
4b86284ca0
5
bkctld
5
bkctld
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue