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.
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
-
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.
-
Select
> SERVICES > SFTP.
-
On the SFTP page, select Add.
-
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.
-
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.
-
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.
-
In step Summary, confirm that the settings are correct, and then select Finish.
-
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.
NoteIf 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
-
On the page displayed from
> SERVICES > SFTP, select Information from the action menu for the SFTP service that was started.
-
Select the link beside External SFTP User that indicates the number of users.
-
On the SFTP > SFTP service name > External Users page that is displayed, select Add.
-
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.
-
In step Summary, confirm that the settings are correct, and then select Finish.
NoteAfter 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.
-
On the page displayed from
> SERVICES > SFTP, select Information from the action menu for the SFTP service that was started.
-
Copy the values of Endpoint and Port.
-
Start up the SFTP application.
-
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.
-
Upload a file to the directory.
Check the HULFT Square storage
-
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").
It may take some time to complete file synchronization.