common/images/route/start.sh

7 lines
215 B
Bash

#!/bin/sh
cp /run/secrets/authorized_keys /home/$SSH_USER/.ssh/authorized_keys
chown "$SSH_USER" "/home/$SSH_USER/.ssh/authorized_keys"
chmod 600 "/home/$SSH_USER/.ssh/authorized_keys"
/usr/sbin/sshd -D -e