#!/nix/store/4nmqxajzaf60yjribkgvj5j54x9yvr1r-bash-5.1-p12/bin/bash
set -e
# Make sure we don't write to stdout, since in case of
# socket activation, it goes to the remote side (#19589).
exec >&2

mkdir -m 0755 -p /etc/ssh

if ! [ -s "/etc/ssh/ssh_host_rsa_key" ]; then
    ssh-keygen \
      -t "rsa" \
      -b 4096 \
       \
       \
       \
      -f "/etc/ssh/ssh_host_rsa_key" \
      -N ""
fi
if ! [ -s "/etc/ssh/ssh_host_ed25519_key" ]; then
    ssh-keygen \
      -t "ed25519" \
       \
       \
       \
       \
      -f "/etc/ssh/ssh_host_ed25519_key" \
      -N ""
fi



