mirror of
https://github.com/ChenjxJames/SFTP-Deploy-Action.git
synced 2025-09-09 19:35:20 +08:00
feat: remove ssh
This commit is contained in:
@@ -12,10 +12,6 @@ printf "%s" "$4" >$TEMP_SSH_PRIVATE_KEY_FILE
|
||||
# avoid Permissions too open
|
||||
chmod 600 $TEMP_SSH_PRIVATE_KEY_FILE
|
||||
|
||||
echo 'ssh start'
|
||||
|
||||
ssh -o StrictHostKeyChecking=no -p $3 -i $TEMP_SSH_PRIVATE_KEY_FILE $1@$2 mkdir -p $6
|
||||
|
||||
echo 'sftp start'
|
||||
# create a temporary file containing sftp commands
|
||||
printf "%s" "put -r $5 $6" >$TEMP_SFTP_FILE
|
||||
|
Reference in New Issue
Block a user