Sftp Configuration
Sftp is a little different from other protocols, because you can set some configurations in path(sftp://[username[:password]@]hostname[:port]/file_path
). But we suggest you not to use password in path. You can use environments setting configuration, and priority is that path settings take precedence over environments.
Use environments
You can use environments to setup authentication credentials:
SFTP_USERNAME
SFTP_PASSWORD
SFTP_PRIVATE_KEY_PATH
: ssh private key pathSFTP_PRIVATE_KEY_TYPE
: algorithm of ssh keySFTP_PRIVATE_KEY_PASSWORD
: if don’t have passwd, not set this environmentSFTP_MAX_UNAUTH_CONN
: this enviroment is about sftp server’s MaxStartups configuration, for connect to sftp server concurrently.MEGFILE_SFTP_MAX_RETRY_TIMES
: sftp request max retry times when catch error which may fix by retry, default is10