github.com/pwn-term/docker@v0.0.0-20210616085119-6e977cce2565/cli/e2e/testdata/connhelper-ssh/entrypoint.sh (about)

     1  #!/bin/sh
     2  set -ex
     3  mkdir -m 0700 -p /home/penguin/.ssh
     4  echo ${TEST_CONNHELPER_SSH_ID_RSA_PUB} > /home/penguin/.ssh/authorized_keys
     5  chmod 0600 /home/penguin/.ssh/authorized_keys
     6  chown -R penguin:penguin /home/penguin
     7  /usr/sbin/sshd -E /var/log/sshd.log
     8  exec dockerd-entrypoint.sh $@