From 6ff9f12bc8058dd1c7857f6f59c4d5fda36aff75 Mon Sep 17 00:00:00 2001 From: StanleyChen Date: Tue, 10 Nov 2020 08:23:18 +0800 Subject: [PATCH] mkdir cannot connect non 22 port --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index ae14b0d..c8d507e 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -14,7 +14,7 @@ chmod 600 $TEMP_SSH_PRIVATE_KEY_FILE echo 'ssh start' # create directory if needed -ssh -o StrictHostKeyChecking=no -i $TEMP_SSH_PRIVATE_KEY_FILE $1@$2 mkdir -p $5 +ssh -o StrictHostKeyChecking=no -p $3 -i $TEMP_SSH_PRIVATE_KEY_FILE $1@$2 mkdir -p $5 echo 'sftp start' # create a temporary file containing sftp commands