FTP
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 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 object storage via FTP is used:
- host
ftp.ru-1.storage.selcloud.ru
, whereru-1
is the pool that hosts the object storage; - port 21.
Authentication is accomplished with an S3 key — The Account Owner or User Administrator issues a key to the service user. When connecting via FTP, the Access key and Secret key fields from the key are used as login and password respectively.
Configure FTP
1. Configure access
Access can be configured by a user with role Account Owner or User Administrator.
- Create a service user with role with access to object storage: Account Administrator, Project Administrator, Object Storage Administrator. The Object Storage User role is not suitable for FTP operations.
- Issue the user an S3 key.
2. Connect via FTP
Connect on Windows
- Total Commander
- Midnight Commander
- FAR Manager
- WinSCP
- FileZilla
- Проводник Windows
- Open Total Commander.
- From the Network menu, select Connect to FTP server.
- Press Add.
- On the General tab, enter any name (for example, Selectel) in the Connection Name field.
- In the Server field, enter
ftp.ru-1.storage.selcloud.ru
. - In the Account field, enter the value of the Access key field from 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.
- Press Connect.
- Open Midnight Commander.
- Press 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.ru-1.storage.selcloud.ru
. Specify<access_key>
is the value of the Access key field from S3-key. - Press Enter.
- Enter the password — the value of the Secret key field from the S3 key. If all data has been entered correctly, the panel will display the contents of the object store.
- Open FAR Manager.
- Press Alt + F1 (for left panel) or Alt + F2 (for right panel) to open the jump menu.
- From the jump menu, select NetBox.
- Press Enter.
- Press Shift + F4. The screen for creating a new connection appears.
- In the File Protocol field, select FTP.
- In the Host name field, enter
ftp.ru-1.storage.selcloud.ru
. - 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.
- To connect via FTP, select the created profile and press Enter.
- Open WinSCP.
- In the Transmission Protocol field, select FTP.
- Enter the hostname —
ftp.ru-1.storage.selcloud.ru
. - Enter the user name — the value of the Access key field from S3-key.
- Enter the password — the value of the Secret key field from the S3 key.
- Press More.
- Select Wednesday.
- In the UTF-8 encoding for file names field, select On.
- Press OK → Save.
- Enter the name of the connection (e.g. Selectel).
- If you want to save your password, check the Remember Password checkbox.
- Optional: check the Create shortcut on "Desktop " checkbox.
- Press OK.
- To connect via FTP, click Log in.
- Open FileZilla.
- From the File menu, select Site Manager.
- Click New Site.
- On the General tab, in the Host field, enter
ftp.ru-1.storage.selcloud.ru
. - Select Normal in the Entry Type field.
- In the User field, enter the value of the Access key field from S3-key.
- In the Password field, enter the value of the Secret key field from the S3 key.
- Open the Transmission Settings tab.
- Select Passive in the Transmission Mode field.
- Open the Coding tab.
- Select UTF-8 forced encoding.
- Press OK.
- From the Transmit menu, select Transmit Mode → Binary.
- From the File menu, select Site Manager.
- To connect via FTP, select the created site and click Connect.
- Open Windows Explorer.
- Right-click on This computer and select Connect Network Disk.
- Click Connect to a website where you can store documents and images.
- Press Next.
- Select Select another network location.
- Press Next.
- Enter the address of the object store —
ftp://ftp.ru-1.storage.selcloud.ru
- Press Next.
- Clear the Anonymous Login checkbox.
- Enter the value of the Access key field from S3-key as the user name.
- Press Next.
- Optional: change the name of the connection.
- Press Done.
- Enter the password — the value of the Secret key field from the S3 key.
- Check the Save password checkbox.
- Press Enter. The connection will be displayed in the list of local and network drives.
Connect on Linux
- Nautilus
- Use Nautilus to open any directory.
- From the File menu, select Server Connection.
- In the Server Address field, type
ftp://ftp.ru-1.storage.selcloud.ru
- Press Connect.
- Select Registered User.
- Enter the login — value of the Access key field from S3-key.
- Enter the password — the value of the Secret key field from the S3 key.
- Optional: check the Remember Forever checkbox.
- Press Connect.