FTP
You can work via FTP only with 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 the service user. When connecting via FTP, the Access key and Secret key fields from the key are used as the login 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 use a service user with the
s3.userorobject_storage_userrole, the bucket must have a configured bucket policy 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 FTP Connect.
- Click New connection.
- On the General tab, in the Connection name field, enter any name (for example, Selectel).
- In the Server 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 Use passive mode for transfers (like a WWW browser) checkbox.
- Open the Advanced tab.
- In the File name encoding field, select UTF-8.
- Click OK. The profile will be saved.
- Click Connect.