jean-cloud-services/services/sftp.jean-cloud.net/deploy.sh
2023-10-31 17:00:18 +01:00

12 lines
246 B
Bash
Executable File

#!/bin/bash
cd "$DATA_DIR"
[ ! -f users.conf ] && touch users.conf
# Create key if not exists
if [ ! -f ssh_host_ed25519_key ] ; then
ssh-keygen -t ed25519 -f ssh_host_ed25519_key -N ''
ssh-keygen -t rsa -b 4096 -f ssh_host_rsa_key -N ''
fi