1
0
docker-jumpbox/start.sh

14 lines
287 B
Bash
Raw Normal View History

2022-09-09 11:37:37 +02:00
#!/bin/sh
mkdir -p /run/sshd
if [ -n "$ROOT_AUTHORIZED_KEYS" ]; then
if [ -f "$ROOT_AUTHORIZED_KEYS" ]; then
mkdir -p /root/.ssh
cp "$ROOT_AUTHORIZED_KEYS" /root/.ssh/authorized_keys
chmod 600 /root/.ssh/authorized_keys
fi
fi
2022-09-09 11:37:37 +02:00
exec /usr/sbin/sshd -D -e