FTP
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.
Object storage uses only passive data transfer mode. The process of connection establishment and data transfer is initiated exclusively from the client side.
Writing to the end of the file is not supported — attempting to do so will return response code 426.
FTP connection is only available for containers in the bullet ru-1
.
Connection data
To connect to object storage via FTP is used:
- FTP host;
- port 21.
Authentication is done with an S3 key — Account Owner or User Administrator produces a key to the service user. When connecting via FTP, the fields Access key and Secret key from the key are used as login and password respectively.
Configure FTP
Set up access
Access can be configured by a user with role Account Owner or User Administrator.
- Create a service user с a role with access to object storage. If you are using a user with the Object Storage User role, the container must be configured with the access policy.
- Issue an S3 key to the user.
Connect via FTP
Connect on Windows
Total Commander
Midnight Commander
FAR Manager
WinSCP
FileZilla
Windows Explorer
- Open Total Commander.
- On the menu. Network select Connect to an FTP server.
- Click Add.
- On the tab General in the field Connection name enter any name (e.g. Selectel).
- In the field Server enter FTP host.
- In the field Account enter the value of the field Access key from S3 key.
- In the field Password enter the value of the field Secret key from the S3 key.
- Check the box Passive exchange mode (like a Web browser).
- Open the tab Extended.
- In the field File name encoding select UTF-8.
- Click OK. The profile will be saved.
- Click Connect.
-
Open Midnight Commander.
-
Click F9. The main menu opens.
-
From the Left (for the left panel) or Right (for the right panel) panel menu, select FTP Link.
-
Enter a string in the format
[<access_key>]@<ftp_host>
. Specify: -
Click Enter.
-
Enter password — field value Secret key from the S3 key. If all data has been entered correctly, the panel will display the contents of the object storage.
- Open FAR Manager.
- To open the transition menu, press Alt + F1 (for the left panel) or Alt + F2 (for the right panel).
- From the transition menu, select NetBox.
- Click Enter.
- Click Shift + F4. The screen for creating a new connection appears.
- In the field File Protocol select FTP.
- In the field Host name enter FTP host.
- In the field User name enter the value of the field Access key from S3 key.
- In the field Password enter the value of the field Secret key from the S3 key.
- Click OK.
- To connect via FTP, select the created profile and press Enter.
- Open WinSCP.
- In the field Transfer Protocol select FTP.
- Enter the host name — FTP host.
- Enter the user name — field value Access key from S3 key.
- Enter password — field value Secret key from the S3 key.
- Click More.
- Select a section Wednesday.
- In the field UTF-8 encoding for file names select On.
- Click OK → Save.
- Enter the name of the connection (e.g. Selectel).
- If you want to save the password, check the checkbox Remember password.
- Optional: check the checkbox Create a shortcut on the Desktop.
- Click OK.
- To connect via FTP, click Sign in.
- Open FileZilla.
- On the menu. File select Site Manager.
- Click New site.
- On the tab General in the field Host enter FTP host.
- In the field Input type select Normal.
- In the field User enter the value of the field Access key from S3 key.
- In the field Password enter the value of the field Secret key from the S3 key.
- Open the tab Transmission settings.
- In the field Transmission mode select Passive.
- Open the tab Coding.
- Select an encoding UTF-8 forced.
- Click OK.
- On the menu. Transmission select Transmission mode → Binary.
- On the menu. File select Site Manager.
- To connect via FTP, select the created site and click Connect.
- Open Windows Explorer.
- Right-click the item This computer and select Connect a network drive.
- Click Connect to a website where you can store documents and images.
- Click Next.
- Select Select another network location.
- Click Next.
- Enter the address of the object store — FTP host.
- Click Next.
- Uncheck the box Anonymous login.
- Enter the value of the field as the user name Access key from S3 key.
- Click Further.
- Optional: change the name of the connection.
- Click Done.
- Enter password — field value Secret key from the S3 key.
- Check the box Save password.
- Click Entrance. The connection will be displayed in the list of local and network drives.
Connect on Linux
Nautilus
- Use Nautilus to open any directory.
- On the menu. File select Connecting to the server.
- In the field Server address enter FTP host.
- Click Connect.
- Select an item Registered user.
- Enter login — field value Access key from S3 key.
- Enter password — field value Secret key from the S3 key.
- Optional: check the checkbox To remember forever.
- Click Connect.