diff --git a/entrypoint.sh b/entrypoint.sh index c8d507e..38765a7 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -13,8 +13,11 @@ printf "%s" "$4" >$TEMP_SSH_PRIVATE_KEY_FILE chmod 600 $TEMP_SSH_PRIVATE_KEY_FILE echo 'ssh start' + +ssh -o StrictHostKeyChecking=no -p $3 -i $TEMP_SSH_PRIVATE_KEY_FILE $1@$2 + # create directory if needed -ssh -o StrictHostKeyChecking=no -p $3 -i $TEMP_SSH_PRIVATE_KEY_FILE $1@$2 mkdir -p $5 +mkdir -p $6 echo 'sftp start' # create a temporary file containing sftp commands