We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1c05b8 commit 0d8a441Copy full SHA for 0d8a441
src/etc/s6-overlay/scripts/generate-ssh-keys
@@ -5,7 +5,7 @@ if [ $DEBUG_MODE == true ]; then
5
fi
6
7
# Check if SSH host keys are missing
8
-if [ $(find /etc/ssh/ssh_host_keys/ -maxdepth 1 -name "ssh_host_*" | wc -l) -ne 3 ]; then
+if [ ! -f $SSH_HOST_KEY_DIR/ssh_host_rsa_key ] || [ ! -f $SSH_HOST_KEY_DIR/ssh_host_ecdsa_key ] || [ ! -f $SSH_HOST_KEY_DIR/ssh_host_ed25519_key ]; then
9
echo "🏃♂️ Generating SSH keys for you..."
10
dpkg-reconfigure openssh-server
11
# Check if the host directory exists. Create it if needed
0 commit comments