I’m working on an application that has a more complex requirement, to access DigitalOcean Spaces via SFTP. This is due to some strict requirements and overall, one application will use the S3-compatible API to communicate with Spaces while the legacy application has to use SFTP. Does anyone know if this is possible?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Hi there,
The DigitalOcean Spaces does not natively support SFTP connections directly. Spaces are designed to be compatible with the Amazon S3 protocol, and thus it offers access via HTTPS using the S3 API.
However, you can still achieve your goal of using SFTP to access DigitalOcean Spaces by setting up an intermediary server that acts as an SFTP server and communicates with Spaces using the S3 API. Here’s a high-level overview of the process:
s3fs-fuse
on the Droplet, which allows you to mount an S3-compatible bucket (e.g., DigitalOcean Space) as a local filesystem.Once you’ve set up this intermediary server, your legacy application can use SFTP to access the mounted directory, which will be synchronized with the DigitalOcean Space.
For a step by step guide on how to set that up you can follow the steps here:
Alternatively, you could use an S3 client like Cyberduck to access your Spaces:
Hope that this helps!
Best,
Bobby