Transfer files to HULFT Square via SFTP connection

Use SFTP services in HULFT Square to transfer files securely.

You can set a file event job so that after a file is uploaded to the SFTP server, processing is executed in HULFT Square.

This section explains how to use SFTP services to transfer files via the internet.

This tutorial uses the SFTP Service application. Before continuing this tutorial, install SFTP Service from App Square.

In addition, for the file upload destination, you will use the workspace Team A, which you created in Create a workspace to work together. Confirm in advance that the workspace has been created.

For details about the installation of applications, refer to App Square.

Note

To use SFTP, a separate contract is required.

It takes approximately one business day for your contract to become effective.

Procedures

Preparation

Make the following preparations to connect to an SFTP service:

  • Check the directory on the HULFT Square storage where you intend to upload a file

  • Install SFTP Service from App Square

  • Configure the SFTP policy

    Assign SFTPServiceFullAccess to the SFTP service administrator.

  • Check the IP addresses of the users who are to be permitted access

  • Create RSA private and public keys using OpenSSH

    Run the command shown below on the command prompt.

    ssh-keygen -t rsa [-f] [save destination]

    If you choose to specify a save destination, enter a value for the f option.

    Two files are generated. The file with the extension .pub is the public key.

  • Prepare the environment (such as an application) to be used to access the SFTP server

Start up an SFTP service

  1. After applying a policy for SFTP Service to a user, press the F5 key to reload the screen.

    = Remarks =

    When the screen is reloaded, SFTP Service appears in the navigation menu.

  2. Select > SERVICES > SFTP.

  3. On the SFTP page, select Add.

  4. In step General, set the fields as shown below, and then select Next.

    Field name

    Setting content (example)

    Name

    SFTP_Server_1

    Description

    (Optional)

    CPU

    1

    Memory

    2 GB

    Scalability

    1

    Assigned group

    Select the group with operation permissions.

  5. In step Parameters, set the fields as shown below, and then select Next.

    Field name

    Setting content (example)

    Port

    Enter a number that is not already in use.

    Root Directory

    /Team A/data (*1)

    Secure connection type

    None

    IP Allowlist

    Enter an IP address (such as your own IP address) that is to be permitted access.

    *1

    :

    This displays the /Workspace name/Directory name.

  6. In step Service Events, set the fields as shown below, and then select Next.

    Field name

    Setting content (example)

    Workspace to save

    Select a workspace for storing logs.

    Author

    Select a user who will be the author of log files.

  7. In step Summary, confirm that the settings are correct, and then select Finish.

  8. On the page displayed from > SERVICES > SFTP, wait a few minutes for the SFTP service to start and then confirm that appears for the status.

    Note

    If you configured the SFTP service settings, it may take some time to apply the settings to the service.

Add an external user who can connect to the SFTP service

  1. On the page displayed from > SERVICES > SFTP, select Information from the action menu for the SFTP service that was started.

  2. Select the link beside External SFTP User that indicates the number of users.

  3. On the SFTP > SFTP service name > External Users page that is displayed, select Add.

  4. In step General, set the fields as shown below, and then select Next.

    Field name

    Setting content (example)

    Name

    Enter the user name.

    Authentication

    Key Authentication

    Authorized Keys

    Select Add Key and enter the public key that you created in Preparation.

  5. In step Summary, confirm that the settings are correct, and then select Finish.

    Note

    After you add an external user, it may take some time until it's ready for use.

    The user name is added to the root directory that has been set for the SFTP service.

Transfer a file from the environment that has access to the SFTP sever

In this step, use an application that can access the SFTP server.

  1. On the page displayed from > SERVICES > SFTP, select Information from the action menu for the SFTP service that was started.

  2. Copy the values of Endpoint and Port.

  3. Start up the SFTP application.

  4. Enter the fields required for a connection, such as the endpoint and port number that you copied in step 2, and then connect to the directory.

  5. Upload a file to the directory.

Check the HULFT Square storage

  1. Confirm that you can find your uploaded file under the Root Directory that you specified on the > SERVICES > SFTP page (in step 5. in "Start up an SFTP service").

  2. Note

    It may take some time to complete file synchronization.