github.com/AliyunContainerService/cli@v0.0.0-20181009023821-814ced4b30d0/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 $@