SFTPCloud allows you to use your own cloud storage in order to power your SFTP/FTPS instances. This means that SFTPCloud lets you access your
Cloudflare R2
storage using the SFTP/FTPS protocols, making it an ideal solution for businesses and individuals looking for a secure and scalable SFTP/FTPS solution.In this tutorial, we will guide you through the process of setting up Cloudflare R2 as a storage option for your SFTP/FTPS instances created via SFTPCloud. We will cover the essential steps required to create the Cloudflare R2 token, configure your SFTP/FTPS instance on SFTPCloud, and use the two services in conjunction with one another
1. Create a new R2 API token
The first step is to generate your R2 token. Open your Cloudflare dashboard, click on
R2
and then on
Manage R2 API Tokens
at the top-right of the page. On the R2 API tokens page, click the
Create API token
button. Now you have to give a name so you can easily recognize the new token in the future, grant
Edit
access, and select the
Forever
option as expiration. When done, you can proceed with the token creation by clicking the
Create API Token
button.Keep the page open because you will need the
Access Key ID
&
Secret Access Key
in the next step and Cloudflare will not display them again.
2. Create a new SFTPCloud instance
Now it's time to create your SFTP/FTPS instance in SFTPCloud. In case you don't have an SFTPCloud account, you will need to make one. Go to the
SFPT Instances
page, click
New SFTP instance
from the top navigation bar and select where you want your new instance to be located.Now it's time to name the new instance and provide the storage credentials needed to establish the connection with Cloudflare R2. In this example,
cloudflare-sftp
was used as the name of the instance. Select
Cloudflare R2
as the instance storage.Type the name of your bucket into the
Bucket name
field. In case you don't already have a bucket, create one (if you need help creating the bucket, follow the
Cloudflare R2 docs
).Into the
Access key ID
and
Access key secret
fields paste the access key ID and secret you generated in the previous step. You also need your Cloudflare account ID which can be found on the Cloudflare R2 main page. Click the
Create SFTP instance
button and your instance will start initializing.
3. Access Cloudflare R2 via SFTP/FTPS
Now it's time to get the SFTPCloud credentials which can be used to access Cloudflare R2 via SFTP/FTPS. In the SFTPCloud instance you just created, click the
Users
tab and then click on the first user.A modal with the user details will appear. Click the
Connection details
tab and there you have all the required details in order to connect to the SFTP/FTPS instance powered by your Cloudflare R2 storage.
Conclusion
Now you have an SFTP/FTPS instance that uses your own Cloudflare R2 account as storage and can be used with your favorite SFTP/FTPS client. If you have any questions, feel free to reach out at support@sftpcloud.io