DigitalOcean SFTP Server

In this guide, we’ll walk you through the process of configuring a DigitalOcean Spaces bucket to work with Baskt’s SFTP as a Service. DigitalOcean Spaces provides an S3-compatible API, making setup a breeze. By the end, you’ll have a fully functional SFTP server backed by your own DigitalOcean storage.

Prerequisites

Before you begin, make sure you have:

  • A DigitalOcean Spaces bucket
  • A Baskt account
  • Basic familiarity with DigitalOcean Spaces and Access Keys

Step 1: Generate Spaces Access Keys

  1. Log in to your DigitalOcean account and navigate to the API page in the left sidebar
  2. Click the “Generate New Key” button under the “Spaces access keys” section
  3. Give your key a name (e.g., “baskt-spaces-access”) and click “Create access key”
  4. Copy the “Key” and “Secret” that are displayed

You now have the access credentials Baskt needs to manage your Spaces bucket.

Step 2: Add Your Bucket to Baskt

  1. Log in to your Baskt account and navigate to the Buckets page
  2. Click “Create a new one”
  3. Enter your Spaces bucket name
  4. Fill in your bucket information:
    • Region: The DigitalOcean region where your bucket is located (e.g., “nyc3”…)
    • Endpoint: The Spaces origin endpoint URL for your bucket’s region, without the bucket name prefix.
    • Access Key ID: The Spaces access key you generated in step 1
    • Secret Access Key: The Spaces secret key you generated in step 1
  5. Click “Create bucket”

To find your Spaces endpoint URL without the bucket name prefix, go to your Spaces bucket settings and locate the “Origin Endpoint” field. Copy the URL but remove the “bucket-name.” portion from the beginning. For example, if your Origin Endpoint is https://baskt-do-spaces.ams3.digitaloceanspaces.com, enter https://ams3.digitaloceanspaces.com as the Endpoint in Baskt.

Baskt will now verify your credentials and connect to your Spaces bucket using the S3-compatible API. Once verification is successful, your Spaces SFTP server is ready for use!

Next Steps

Now that your DigitalOcean Spaces bucket is set up, you can:

  • Create Baskt Users and assign them access to your bucket
  • Connect to your bucket via SFTP and start transferring files
  • Monitor user activity and bandwidth usage through the Baskt dashboard