2022-09-09 11:37:37 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
mkdir -p /run/sshd
|
|
|
|
|
2022-09-15 14:30:12 +02:00
|
|
|
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
|