common/route/start.sh

7 lines
215 B
Bash
Raw Normal View History

2021-01-02 23:30:57 -08:00
#!/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