SFTP - Pull Files
Use this type of job to automatically pull files from a remote host using SFTP.

Configuration

SFTP Pull configuration viewed as a user

SFTP Pull configuration viewed as an active directory user
Credential Input Type
Two types of authentication can be used:
- Manual: username and password
- SSH Key: username and selecting previously stored private SSH key (see: My Credentials)
Source SFTP Username
The username used to authenticate via SFTP on the selected host.
Source SFTP Password
The password used to authenticate via SFTP on the selected host. It is possible to provide an empty password.
In case of editing or duplicating a previously saved job, the password needs to be re-entered.
Select SSH Key
If the SSH Key credential input type was selected, beside adding the username which used to authenticate on the SFTP server, you should select the proper stored private SSH key to authenticate.

Select Source SFTP
Select the SFTP integration to use. Files will be pulled from the selected host. See: SFTP Integration
Provide Source Paths
Provide paths to recursively collect and pull files from the selected host through SFTP. You can configure any number of paths; if no path is added, the root ('/') will be the default source path.
The folder structure under the configured source paths will be preserved under the destination.
Pull Files as a Member of the Selected Group
Select the "Active Directory" group under which you want to upload files. Different groups may have different security settings. This field is available if your account belongs to Active Directory and you are part of multiple groups, or if the "Allow Users to Upload Files Without Specifying Group Membership" option is disabled.
For further information about the security aspects, read Custom MetaDefender Core Workflow Rule for Groups and Active Directory Supervisors Setup.
Destination at MFT
Specify the destination path in MetaDefender Managed File Transfer where the files will be pulled. If the path does not exist, it will be created automatically.
Transfer Method
Decide what to do with the original files on the remote host:
- Copy Files: Files successfully pulled will remain on the remote host.
- Move Files: Files successfully pulled will be removed from the remote host.
If multiple source paths point to the same file, the file will only be deleted on the remote host if it was successfully pulled from all listed source paths.
For example, if move is enabled and there is a file /data/logs/log.txt
and source paths /data
and /data/logs
are configured with the destination /pull,
the file will only be removed from the remote host if pulling was successful for both /pull/logs/log.txt
and /pull/log.txt
.
File Overwrite Rules
Decide what to do if a file with the same absolute path already exists in MetaDefender Managed File Transfer:
- Don't Overwrite: Do not pull the file from the remote host.
- Overwrite Existing: Pull the file from the remote host and replace the locally existing one.
The "Overwrite" option does not perform any pre-check on the local or remote file; it simply overwrites the local file with the remote one, even if they contain the same data. This means if a file does not change on the remote host, the same file will be pulled repeatedly.
Workflow Override
If enabled, select which MetaDefender Core Workflow Rule should analyze the files being pulled.
If Workflow Override is not enabled, the analysis will use the same MetaDefender Core Workflow Rule as it would for a manually uploaded file.
Example
I want to pull files from my remote Ubuntu 20.04 host into MetaDefender Managed File Transfer. I only want to pull files located in my home folder, and I want this to occur every Monday at 10 AM. My username is teodor and my password is pass%123!.
My Ubuntu host is accessible through the FQDN lnx.home.io, where the SSH server is running on port 22. I want to keep the files on my Linux host, while copying them for my user under the path /pulled/lnx
in MetaDefender Managed File Transfer. If a file already exists at this destination, I want it to be overwritten. For these files, I want my MetaDefender Core integration to analyze them with the Workflow Rule named "Pulled From Linux."

