jean-cloud-services/services/sftp.jean-cloud.net/deploy.sh

12 lines
246 B
Bash
Raw Normal View History

2023-10-31 16:00:18 +00:00
#!/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