---
title: Deploy SFTPGo with AI on Blossom
url: "/deploy/sftpgo/"
canonical_url: https://blossom88.com/deploy/sftpgo/
markdown_url: https://blossom88.com/deploy/sftpgo.md
summary: Give two file transfer accounts separate directories.
categories:
- deployment
- file sharing
stack:
- Go
- SQLite
---

# Deploy SFTPGo with AI on Blossom

[SFTPGo](https://github.com/drakkan/sftpgo) gives each user a file
directory and lets an administrator control which files the user can
see. Use the WebClient to try it with two sample accounts.

## Ask Your Agent

> **Ask your AI agent:** Deploy SFTPGo on Blossom and help me give two users their own file directories.
>
> Follow this guide: https://blossom88.com/deploy/sftpgo/

[Install the Blossom CLI and skill](https://docs.blossom88.com/learn/getting-started/install/) on your agent's machine and choose a Blossom Cloud Location when you log in. You can also use [Blossom BYOC (bring your own cloud)](https://docs.blossom88.com/learn/getting-started/choose-your-cloud/#blossom-byoc).

## How It Runs

| Part | Role | Where |
|---|---|---|
| SFTPGo | Manage users and serve their file directories | Persistent Service behind Blossom Account access |

## Deploy SFTPGo

Deploy the upstream open-source edition as a Persistent Service and
open its WebAdmin over HTTPS. The source uses [AGPL-3.0-only](https://github.com/drakkan/sftpgo/blob/v2.7.6/LICENSE)
with [additional terms](https://github.com/drakkan/sftpgo/blob/v2.7.6/NOTICE).

<details class="optional-reading" markdown="1">
<summary>Notes for your agent</summary>

Mount a [Persistent Service Volume](/docs/apps/persistent-services/) at
`/srv/sftpgo`. Run `sftpgo serve --config-dir /srv/sftpgo` to keep
the SQLite database, host keys, and user directories on the same Volume.
Set a strong initial administrator password through a secret and protect
the Service with Blossom Account access.

    blossom service:create --data sftpgo-web.yml
    blossom environment:deploy --id environment-100 --follow

The route in this recipe serves WebAdmin and WebClient over HTTPS.
An SFTP client needs a network path to the separate SFTP listener.

</details>

## Upload a Sample File

In WebAdmin, create two users with separate home directories. Sign in
as the first user through WebClient and upload a sample handout.

> **Ask your AI agent:** Create two isolated users in SFTPGo and upload a sample file as the first user.

> Follow this guide: https://blossom88.com/deploy/sftpgo/



![Find the handout in the first user's directory.](/deploy/assets/images/sftpgo/workshop-files.webp)

## Check the Second Directory

Sign in as the second user in a fresh browser session. Its directory
starts empty. Switch back to the first user to download the handout.

![See the second user's empty directory.](/deploy/assets/images/sftpgo/reviewer-files.webp)

## What You Get

Two file transfer accounts with separate directories and one sample
file available to its owner.

## What You Get

- A file workspace with its own user accounts
- A sample file in the first user's directory
- A second account with a separate file directory

Tested on Blossom: The original file and both user directories survived Container replacement.
