blob: 3b75a9dc3e601bf034e860e3811bad09446babb6 (
plain)
1
2
3
4
5
6
7
|
if [ ! -e /data/ssh/host_rsa_key ]; then
echo "Generating host keys"
ssh-keygen -t rsa -f /data/ssh/host_rsa_key
ssh-keygen -t dsa -f /data/ssh/host_dsa_key
ssh-keygen -t ecdsa -f /data/ssh/host_ecdsa_key
ssh-keygen -t ed25519 -f /data/ssh/host_ed25519_key
fi
|