Skip to content

SFTP

Docker Image SizeLicenseGit Repository

Transfers files using SFTP.

If no script file is specified with SCRIPT, input is used to specify the commands to be executed, e.g.:

yaml
input: |
  put localfile.txt
  get remotefile.txt

Params

ParamDescription
SSH_LOGIN_USERSSH user (string)
SSH_LOGIN_PASSWORDSSH password (string)
SSH_LOGIN_KEYSSH private key file (string)
HOSTHost to connect to (string)
PORTCustom port to connect to (string)
SSH_OPTIONSAdditional SSH options (e.g. -o Option1=value -o Option2=value) (string)
SCRIPTScript file to be executed (or - for stdin) (default: -) (string | "-")