Skip to content

08Cloud Storage

Create access keys and connect your storage

Connect Nexthosting Cloud Storage as a drive (Windows, Mac, Linux) or via SFTP, WebDAV or S3 with an access key. Includes rclone and aws-cli examples for "can't connect".

In short

For every program and every device, you create a separate access (Zugang) in the panel. You get a user name and password (SFTP, WebDAV) or an Access Key ID and Secret Access Key (S3). The password or secret is shown only once. The wizard under Connect (Verbinden) shows you the right steps for Windows, Mac and Linux and provides ready-made connection files.

Method Address Credentials
WebDAV (drive) https://dav.nexthosting.net/ User name and password
SFTP sftp.nexthosting.net, port 22 User name and password
S3 https://s3.nexthosting.net, region eu-central Access Key ID and Secret Access Key

With S3, both address styles work: path style (s3.nexthosting.net/bucket) and host style (bucket.s3.nexthosting.net). If a program asks for it, turn on “path style” or “force path style”.

The easiest way is the wizard: choose Connect, pick the method (As a drive, SFTP, S3, Backup program or WordPress) and your operating system, then create the access in step 1. Alternatively, create accesses under Accesses (Zugänge) with Create access (Zugang anlegen).

Connect page in the Cloud Storage panel with the tabs As a drive, SFTP, S3, Backup program and WordPress, the operating system choice and step 1 Create access with name, scope and permissions

The wizard under Connect: it shows you the right steps for each method.

  1. Choose the method: As a drive, SFTP, S3, Backup program or WordPress
  2. Choose the operating system: Windows, macOS or Linux
  3. Step 1: set name, scope and permissions, then Create access
  4. Step 2: the connection details you enter in your program
  1. Choose the type: S3, SFTP or “WebDAV / drive”.
  2. Enter a name that helps you recognise the access later, for example “Office PC” or “Backup NAS”.
  3. Choose access to: all your buckets (including future ones) or a single bucket. Optionally, limit the access to one folder inside it, for example updraftplus/.
  4. Choose the permissions (see below). With access to all buckets, the access can do everything. For restricted permissions, choose a single bucket.
  5. Under “More settings” you can set an expiry date (“Valid until”) and limit the access to specific IP addresses.
  6. Click Create access. Copy the password or secret now, or download the connection file.

You can see all the accesses you created under Accesses. There you can revoke each one individually.

Accesses page in the Cloud Storage panel, still without any access, with the buttons Instructions and Create access and a note pointing to the wizard under Connect

The Accesses page, still empty here.

  1. Create access
  2. List of all accesses with a counter (here 0 of 50)
  3. To the wizard (Zum Assistenten) leads to Connect
Permission Means
Read Download files
List View folders
Write Upload and change
Delete Remove files

Backup programs usually need Read, List and Write. If the program should clean up old versions itself, also give it “Delete”. Alternatively, a deletion rule on the bucket does the cleanup, even if the program is not allowed to delete anything.

Under Accesses you see all accesses with their scope, last use and validity. With Revoke (Widerrufen), an access loses its connection immediately, and running SFTP and WebDAV sessions are disconnected. If a device is lost, you revoke only its access, and everything else keeps working. General tips for securing your account are in Account and security.

Create an access of the type “WebDAV / drive”. For large amounts of data or backups, SFTP and S3 are faster than a drive.

  1. Open Explorer, then This PC, then Map network drive.
  2. Enter https://dav.nexthosting.net/ as the folder.
  3. Tick “Connect using different credentials”.
  4. Enter the user name and password of your access.

Alternatively, download the ready-made file in the wizard: a double-click connects the drive and stores the password in the Windows credential manager.

Create an access of the type SFTP. The top-level folders are your buckets. On first connection, the program asks about the server key; confirm it.

Field Value
Protocol SFTP
Server sftp.nexthosting.net
Port 22
User name the user name of your access
Password the password of your access

Example in the terminal (Mac, Linux, Windows 11):

Terminal window
sftp -P 22 DEIN-BENUTZERNAME@sftp.nexthosting.net

In WinSCP, FileZilla or Cyberduck, you enter the same details in the connection form. The wizard also offers a WinSCP session or a Cyberduck bookmark to download. With rclone, a configuration looks like this:

[nexthosting-sftp]
type = sftp
host = sftp.nexthosting.net
port = 22
user = DEIN-BENUTZERNAME
pass = DEIN-VERSCHLUESSELTES-PASSWORT

Never enter the password there in plain text, only in the form obscured by rclone (rclone obscure). The wizard creates the finished file for you.

Create an access of the type S3. You get an Access Key ID and a Secret Access Key.

[nexthosting]
type = s3
provider = Other
access_key_id = DEIN-ZUGANGSSCHLUESSEL
secret_access_key = DEIN-GEHEIMER-SCHLUESSEL
endpoint = https://s3.nexthosting.net
region = eu-central
force_path_style = true

The file belongs in ~/.config/rclone/rclone.conf (Windows: %APPDATA%\rclone\rclone.conf). Then:

Terminal window
rclone ls nexthosting:
rclone copy ./Ordner nexthosting:mein-bucket/ordner
Terminal window
export AWS_ACCESS_KEY_ID=DEIN-ZUGANGSSCHLUESSEL
export AWS_SECRET_ACCESS_KEY=DEIN-GEHEIMER-SCHLUESSEL
aws s3 ls s3://mein-bucket/ --endpoint-url https://s3.nexthosting.net --region eu-central

From aws-cli version 2.23, also set request_checksum_calculation = when_required in the configuration.

Terminal window
export AWS_ACCESS_KEY_ID=DEIN-ZUGANGSSCHLUESSEL
export AWS_SECRET_ACCESS_KEY=DEIN-GEHEIMER-SCHLUESSEL
restic -r s3:https://s3.nexthosting.net/mein-bucket/restic init
restic -r s3:https://s3.nexthosting.net/mein-bucket/restic backup ~/Dokumente

Cloud Storage has been tested with aws-cli, rclone and restic. Common S3, SFTP and WebDAV programs work as well, for example WinSCP, Cyberduck, FileZilla, Synology Hyper Backup and UpdraftPlus.

In the wizard, choose the method Backup program and your operating system.

  • Duplicati (Windows): destination “S3 Compatible”, server “Custom server url”, enter the address s3.nexthosting.net without https://.
  • Arq (Mac): File, New Storage Location, S3-Compatible Server.
  • Synology Hyper Backup and QNAP HBS 3: destination “S3 storage” or “S3-compatible”, server s3.nexthosting.net, signature version 4, path style.

In the wizard, choose the method WordPress. The access is then allowed to write only into its own folder and cannot delete anything. That way, a hacked WordPress admin can’t touch your other files.

  1. In WordPress: Settings, UpdraftPlus Backups, tab Settings.
  2. Choose S3-Compatible (Generic) as the storage location.
  3. Enter the details from the wizard: endpoint, Access Key ID, Secret Access Key and, as location, mein-bucket/updraftplus/.

You clean up old backups in the file manager or with a deletion rule on the bucket, because the access itself is not allowed to delete anything.

Can I look at a password or secret afterwards?

Section titled “Can I look at a password or secret afterwards?”

No. It is only shown when you create the access. Revoke the access and create a new one.

Why does the Windows drive fail with large files?

Section titled “Why does the Windows drive fail with large files?”

Windows limits WebDAV transfers to files up to 50 MB. Use RaiDrive, rclone, WinSCP (SFTP) or S3.

My program reports “Access denied” or “AccessDenied”.

Section titled “My program reports “Access denied” or “AccessDenied”.”

Under Accesses, check that the access points to the right bucket, has the required permissions, has not expired, and that you are connecting from an allowed IP address. If your storage is locked because of an open invoice, nothing works by any method.

My website shows a CORS error in the browser.

Section titled “My website shows a CORS error in the browser.”

Then the website that accesses the bucket must be entered as an allowed website. Allowed websites (CORS) explains how.