FTP
FTP access is only available for buckets in pools ru-1 and ru-7.
When working with buckets, you must use TLS/SSL Explicit encryption (TLS/SSL Explicit encryption).
The FTP protocol uses two connections:
- a control connection — this is used to transmit commands and responses, which are text strings;
- a data transfer connection.
S3 uses only passive data transfer mode. The connection establishment and data transfer process is initiated exclusively from the client side.
Appends to files are not supported — when attempting to do so, a 426 response code will be returned.
Connection data
To connect to S3 via FTP, use:
- FTP host in the required pool;
- port 21 (control port);
- port range 10100-12000 (data ports).
Authentication is performed using an S3 key — the Account Owner or a user with the iam.admin role must issue a key to a service user. When connecting via FTP, the Access key and Secret key from the key are used as the username and password, respectively.
Configure FTP
1. Configure access to S3
Access can be configured by the Account Owner or a user with the iam.admin role.
-
Create a service user with a role with S3 access, except for the
s3.bucket.userrole — FTP connection will not work with it.If you are using a service user with the
s3.userorobject_storage_userrole, a bucket policy must be configured in the bucket, and its rules must allow access to this user.
2. Connect via FTP
To connect via FTP, you can only use clients that support secure connections via TLS/SSL (FTPS).
Windows
Linux
Total Commander
FAR Manager
WinSCP
FileZilla
- Open Total Commander.
- In the Net menu, select Connect to FTP server.
- Click Add.
- On the General tab in the Session field, enter any name (e.g., Servercore).
- In the Host name field, enter the FTP host in the required pool.
- Select the SSL/TLS checkbox.
- In the User name field, enter the value of the Access key field from the S3 key.
- In the Password field, enter the value of the Secret key field from the S3 key.
- Select the Passive mode (like Web browser) checkbox.
- Open the Advanced tab.
- In the Encoding field, select UTF-8.
- Click OK. The profile will be saved.
- Click Connect.