mirror of
https://github.com/ChenjxJames/SFTP-Deploy-Action.git
synced 2025-09-10 03:39:47 +08:00
Merge pull request #8 from stan-chen/fix-ssh-port
mkdir cannot connect non 22 port
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user