1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-16 03:48:44 +00:00
dockerfiles/openssh/docker-entrypoint.sh

13 lines
130 B
Bash
Raw Normal View History

2016-07-01 14:15:28 +00:00
#!/bin/sh
cd /root/.ssh
if [ -d keys ]
then
cat keys/*.pub > authorized_keys
fi
ssh-keygen -A
exec /usr/sbin/sshd -D "$@"