FTP
It is possible to work via FTP only with bucket in pools ru-1 and ru-7.
TLS/SSL Explicit encryption (TLS/SSL Explicit encryption) must be used when working with buckets.
Two connections are used for the FTP protocol to work:
- control connection — commands and responses are sent over it, they are text strings;
- data connection.
S3 uses only passive data transfer mode. The connection establishment and data transfer process is initiated solely on the client side.
Writing to the end of the file is not supported — attempting to do so will return response code 426.
Connection data
To connect to S3 via FTP is used:
- FTP host in the right pool;
- port 21.
Authentication is done with an S3 key — Account Owner or user with role iam_admin
When connecting via FTP, the Access key and Secret key fields from the key are used as login and password respectively.
Configure FTP
1. Set up access
Access can be configured by the Account Owner or a user with the role of iam_admin
.
- Create a service user с role with access to S3.If you use a service user with the role
object_storage_user
, you must have an access Bucket Policy. - Issue an S3 key to the user.
2. Connect via FTP
Only clients that support secure connection over TLS/SSL (FTPS) can be used for FTP connections.
Windows
Linux
Total Commander
FAR Manager
WinSCP
FileZilla
- Open Total Commander.
- From the Network menu, select Connect to FTP server.
- Click Add.
- 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 desired pool.
- Check the SSL/TLS checkbox.
- In the Account 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.
- Check the Passive sharing mode (as Web browser) checkbox.
- Open the Advanced tab.
- In the File name encoding field, select UTF-8.
- Press OK. The profile will be saved.
- Click Connect.
-
Open FAR Manager.
-
To open the transition menu:
- for the left panel — press Alt + F1;
- for the right pane — press Alt + F2.
-
Select NetBox from the transition menu.
-
Press Enter.
-
Press Shift + F4. The screen for creating a new connection opens.
-
In the File Protocol field, select FTP.
-
In the Encryption field, select TLS/SSL Explicit encryption.
-
In the Host name field, enter the FTP host in the desired pool.
-
In the Port number field, enter
21
. -
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.
-
Press OK.
-
Select the profile you have created.
-
Press Enter.
- Open WinSCP.
- In the Transfer Protocol field, select FTP.
- In the Encryption field, select TLS/SSL Explicit encryption.
- Enter the hostname — the FTP host in the desired pool.
- In the Port field, enter
21
. - Enter the user name — the value of the Access key field from the S3 key.
- Enter the password — the value of the Secret key field from the S3 key.
- Click More.
- Select the Environment section.
- In the UTF-8 encoding for file names field, select On.
- Click OK → Save.
- Enter the name of the connection.
- If you want to save your password, check the Remember Password checkbox.
- Optional: check the Create shortcut on "Desktop" checkbox.
- Press OK → Sign in.
- Open FileZilla.
- From the File menu, select Site Manager.
- Click New Site.
- On the General tab, in the Host field, enter the FTP host in the desired pool.
- In the Port field, enter
21
. - In the Encryption field, select Require FTP over TLS (explicit).
- In the Input Type field, select Normal.
- In the User 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.
- Open the Transmission Settings tab.
- In the Transmission Mode field, select Passive.
- Open the Encoding tab.
- Select UTF-8 encoding forcibly.
- Click OK.
- From the Transmit menu, select Transmit Mode → Binary.
- From the File menu, select Site Manager.
- Select a site that has been created.
- Click Connect.
Nautilus
FileZilla
- Use Nautilus to open any directory.
- From the File menu, select Connect to Server.
- In the Server Address field, enter
ftps://<ftp_host>
. Specify<ftp_host>
— the FTP host in the desired pool. - Click Connect.
- Select Registered User.
- Enter login — the value of the Access key field from the S3 key.
- Enter the password — the value of the Secret key field from the S3 key.
- Optional: check the Remember Forever checkbox.
- Click Connect.
- Open FileZilla.
- From the File menu, select Site Manager.
- Click New Site.
- On the General tab, in the Host field, enter the FTP host in the desired pool.
- In the Port field, enter
21
. - In the Encryption field, select Require FTP over TLS (explicit).
- In the Input Type field, select Normal.
- In the User 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.
- Open the Transmission Settings tab.
- In the Transmission Mode field, select Passive.
- Open the Encoding tab.
- Select UTF-8 encoding forcibly.
- Click OK.
- From the Transmit menu, select Transmit Mode → Binary.
- From the File menu, select Site Manager.
- Select a site that has been created.
- Click Connect.