1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-16 11:58:47 +00:00
dockerfiles/openssh/docker-entrypoint.sh
2016-07-01 22:22:21 +08:00

13 lines
130 B
Bash
Executable File

#!/bin/sh
cd /root/.ssh
if [ -d keys ]
then
cat keys/*.pub > authorized_keys
fi
ssh-keygen -A
exec /usr/sbin/sshd -D "$@"