
Psftp download file with partial file name - simply matchless
Transfer files using a client
You transfer files over the AWS Transfer Family service by specifying the transfer operation in a client. AWS Transfer Family supports the following clients:
OpenSSH (Macintosh and Linux)
This client works only with an SFTP-enabled server.
WinSCP (Microsoft Windows only)
Cyberduck (Windows, Macintosh, and Linux)
FileZilla (Windows, Macintosh, and Linux)
The following limitations apply to every client:
For FTPS, only Explicit mode is supported. Implicit mode is not supported.
For FTP and FTPS, only Passive mode is supported.
For FTP and FTPS, only STREAM mode is supported.
For FTP and FTPS, only Image/Binary mode is supported.
For FTP and FTPS, TLS - PROT C (unprotected) TLS for the data connection is the default.
The following is a list of available commands for FTP and FTPS:
Available Commands | |||||
---|---|---|---|---|---|
ABOR | FEAT | MLST | PASS | RETR | STOR |
AUTH | LANG | MKD | PASV | RMD | STOU |
CDUP | LIST | MODE | PBSZ | RNFR | STRU |
CWD | MDTM | NLST | PROT | RNTO | SYST |
DELE | MFMT | NOOP | PWD | SIZE | TYPE |
EPSV | MLSD | OPTS | QUIT | STAT | USER |
Following, you can find how to transfer files with each client.
Use OpenSSH
Use the instructions that follow to transfer files from the command line using OpenSSH.
This client works only with an SFTP-enabled server.
To transfer files over AWS Transfer Family using the OpenSSH command line utility
On Linux or Macintosh, open a command terminal.
At the prompt, enter the following command:
In the preceding command, is the user name and is the SSH private key. Here, is the server's endpoint as shown in the AWS Transfer Family console for the selected server.
An prompt should appear.
At the prompt, enter the following command:
On the next line, enter the following text:
In this getting-started exercise, this Amazon S3 bucket is the target of the file transfer.
On the next line, enter the following command:
The command transfers the file into the Amazon S3 bucket.
A message like the following appears, indicating that the file transfer is in progress, or complete.
It can take a few minutes after your server is created for the server endpoint hostname to be resolvable by the DNS service in your environment.
Use WinSCP
Use the instructions that follow to transfer files from the command line using WinSCP.
To transfer files over AWS Transfer Family using WinSCP
Open the WinSCP client.
In the Login dialog box, for File protocol, choose a protocol: SFTP or FTP.
If FTP is chosen, for Encryption, choose one of the following:
No encryption for FTP
TLS/SSL Explicit encryption for FTPS
For Host name, enter your server endpoint. The server endpoint is located on the Server details page, see View server details.
For Port number, enter the following:
for SFTP
for FTP/FTPS
For User name, enter the name for the user that you created in Add a user.
Choose Advanced to open the Advanced Site Settings dialog box. In the SSH section, choose Authentication.
For Private key file, browse for and choose the SSH private key file from your file system.
If WinSCP offers to convert your SSH private key to the PPK format, choose OK.
Choose OK to return to the Login dialog box, and then choose Save.
In the Save session as site dialog box, choose OK to complete your connection setup.
In the Login dialog box, choose Tools and then choose Preferences.
In the Preferences dialog box, for Transfer, choose Endurance.
Choose Disable for the Enable transfer resume/transfer to temporary filename for option.
If you leave this option enabled, it increases upload costs, substantially decreasing upload performance. It also can lead to failures of large file uploads.
For Transfer, choose Background, clear the Use multiple connections for single transfer check box.
If you leave it selected, this approach can cause large file uploads to fail in unpredictable ways. An example includes creating orphaned multipart uploads that incur Amazon S3 charges. Silent data corruption can also occur.
Perform your file transfer.
You can use drag-and-drop methods to copy files between the target and source windows. You can use toolbar icons to upload, download, delete, edit, or modify the properties of files in WinSCP.
Because Amazon S3 manages object timestamps, be sure to disable WinSCP timestamp settings before you perform file transfers. To do so, in the WinSCP Transfer settings dialog box, disable the Set permissions upload option and the Preserve timestamp common option.
Use Cyberduck
Use the instructions that follow to transfer files from the command line using Cyberduck.
To transfer files over AWS Transfer Family using Cyberduck
Open the Cyberduck client.
Choose Open Connection.
In the Open Connection dialog box, choose a protocol: SFTP (SSH File Transfer Protocol), FTP-SSL (Explicit AUTH TLS), or FTP (File Transfer Protocol).
For Server, enter your server endpoint. The server endpoint is located on the Server details page, see View server details.
For Port number, enter the following:
for SFTP
for FTP/FTPS
For Username, enter the name for the user that you created in Add a user.
If SFTP is selected, for SSH Private Key, choose or enter the SSH private key.
Choose Connect.
Perform your file transfer.
Depending on where your files are, do one of the following:
In your local directory (the source), choose the files that you want to transfer, and drag and drop them into the Amazon S3 directory (the target).
In the Amazon S3 directory (the source), choose the files that you want to transfer, and drag and drop them into your local directory (the target).
Use FileZilla
Use the instructions that follow to transfer files from the command line using FileZilla.
To set up FileZilla for a file transfer
Open the FileZilla client.
Choose File, and then choose Site Manager.
In the Site Manager dialog box, choose New site.
On the General tab, for Protocol, choose a protocol: SFTP or FTP.
If FTP is chosen, for Encryption choose one of the following:
Only use plain FTP (insecure) – for FTP
Use explicit FTP over TLS if available– for FTPS
For Host name, enter your server endpoint. The server endpoint is located on the Server details page, see View server details.
For Port number, enter the following:
for SFTP
for FTP/FTPS
If SFTP is selected, for Logon Type, choose Key file.
For Key file, choose or enter the SSH private key.
For User, enter the name for the user that you created in Add a user.
Choose Connect.
Perform your file transfer.
If you interrupt a file transfer in progress, AWS Transfer Family might write a partial object in your Amazon S3 bucket. If you interrupt an upload, check that the file size in the Amazon S3 bucket matches the file size of the source object before continuing.
Use a perl client
If you use the NET::SFTP::Foreign perl client, you must set the to . For example:
-
-
-