S3 Gateway: Set Up on Linux

Install and run the Dekko S3 Gateway on a Linux computer.

Overview

The Dekko S3 Gateway lets S3 programs on your computer read and write your DekkoCORE hubs. This article covers the Linux gateway.

Your tenancy must allow the gateway. A Tenancy Manager turns on Allow local S3 gateway in Tenancy Policies.

Requirements

Minimum Recommended
CPU 1 core, 64-bit x86 (Intel or AMD) 2 cores
Memory 1 GB 2 GB
Free disk 300 MB 1 GB
Operating system 64-bit Linux with glibc (not Alpine, not ARM) Ubuntu 22.04 or 24.04, Debian 12, or Red Hat Enterprise Linux 8, 9 or 10
System packages ICU, OpenSSL, libstdc++, zlib and CA certificates Same
Network Outbound HTTPS (port 443) to the Dekko service your token belongs to Same

On Ubuntu, the system packages are libicu*, libssl3, libstdc++6, zlib1g and ca-certificates. Most server installs already have them.

The gateway answers only on the same computer (127.0.0.1).

Set up the gateway

These steps are also in README.txt inside the package.

  1. Sign in as the account that will use the gateway, not root. Extract the package into your home folder, then open the gateway's folder:

    tar -xzf DekkoS3Gateway-linux-x64.tar.gz
    cd DekkoS3Gateway
    
  2. In DekkoCORE, go to Settings → Account → S3 gateway, select New token, then Copy token. For what each token setting means, see Enable Access and Create a Token.

  3. Within 5 minutes of copying the token, add it to the gateway:

    ./S3LocalServer add-token '<the token>'
    

    The gateway prints the access key ID and secret access key that your S3 program needs.

  4. Start the gateway and leave it running:

    ./S3LocalServer --console --urls http://127.0.0.1:9493
    

    To stop it, press Ctrl+C.

The gateway must be running the whole time your S3 program uses it. If it stops, the program can't see your hubs, and transfers in progress stop.

Connect an S3 program

Use these settings in your S3 program:

Setting Value
Endpoint http://127.0.0.1:9493
Access key ID Printed in step 3
Secret access key Printed in step 3
Addressing (URL style) Path style
Secure transfer (TLS) Off
Region Any, for example ap-southeast-2

For rclone and other S3 programs, see S3 Gateway: Connect an S3 App.

AWS CLI

Before you use the AWS CLI on Linux, set it to its classic transfer engine:

aws configure set default.s3.preferred_transfer_client classic
Was this article helpful?
Didn't find what you need?Ask the AI assistant about this topic, or contact support.
Request support