Statistics
| Branch: | Revision:

root / example / instance-image.d / ssh @ 60484bb3

History | View | Annotate | Download (342 Bytes)

1
#!/bin/bash
2

    
3
# Remove all generated keys so that each instance has unique keys for ssh
4

    
5
. common.sh
6

    
7
HOST_KEY="/etc/ssh/ssh_host_key"
8
RSA_KEY="/etc/ssh/ssh_host_rsa_key"
9
DSA_KEY="/etc/ssh/ssh_host_dsa_key"
10

    
11
for key in $HOST_KEY $RSA_KEY $DSA_KEY ; do
12
    if [ -f "${TARGET}/${key}" ] ; then
13
        rm -f ${TARGET}/${key}
14
    fi
15
done
16

    
17
exit 0