Help Center/ Cloud Bastion Host/ User Guide (Kuala Lumpur Region)/ FAQs/ About File Transfer/ How Do I Use FTP/SFTP to Transfer Files to or From an SSH Host?
Updated on 2024-06-12 GMT+08:00

How Do I Use FTP/SFTP to Transfer Files to or From an SSH Host?

The O&M engineer admin_A needs to use the FTP/SFTP client to transfer files to the SSH host HOST_A managed by a CBH instance.

Prerequisites

  • OS requirement: The target device must support SFTP/FTP.
  • Firewall requirements: Port 2222 (for SFTP) and port 2121 (for FTP) must be enabled.

Configuring HOST_B Resources

The CBH administrator assigns the O&M permissions of HOST_B to the O&M engineer admin_A.

  1. Choose Resource > Host.
  2. Click New to create FTP/SFTP host HOST_B.

    • Select FTP or SFTP for Protocol. For security purposes, you are advised to select SFTP.
    • Set Host Address to the IP address of HOST_A.
    • Set other parameters according to the configuration of HOST_A. HOST_A and HOST_B point to the same host, but the protocol type is different.

  3. Choose Policy > ACL Rules, and assign the newly created host HOST_B to admin_A.

Transferring files using SFTP/FTP clients

The following describes how the O&M engineer admin_A logs in to the CBH instance and transfers files using HOST_B.

  1. Choose Operation > Host Operations.
  2. Click Login in the row where HOST_B locates.
  3. Start the local FTP/SFTP client and enter the required login information in the displayed dialog box.
  4. After engineer admin_A logs in to HOST_B, files can be transferred.