1
0
Fork 0
docker-jumpbox/start.sh

14 lines
287 B
Bash
Executable File

#!/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
exec /usr/sbin/sshd -D -e