Access remote files with SSHFS

In Nuvolos applications, you can access files stored on your server via a secure SSH connection and use them as if they were on the file system of the Nuvolos application.

Prerequisites

Create an SSH key

To be able to authenticate with your server using SSH, you will need to create an SSH key in Nuvolos and add the generated public key to the authorized_keys file on your server to accept the newly generated SSH key. Under Linux systems, the file is usually located under ~/.ssh/authorized_keys .

To do this, go to your account settings and click on the SSH Keys tab. Click on the Generate SSH Key button to create an SSH key:

Configure the connection using environment variables

Next, on the Environment tab, add the following environment variables that specify:

  • SSHFS_USER: The username to use when connecting with the remote host.

  • SSHFS_SERVER: The SSH server Nuvolos applications will connect to.

  • SSHFS_REMOTE_PATH: The path on the remote SSH server to be mounted.

Configuring your Nuvolos application

The SSHFS add-on can be added on the application configuration screen to an application:

Please restart your application if running for the changes to take effect.

Accessing remote files

Once the prerequisite configuration has been done and the applications have been also configured to use SSHFS, you can start your Nuvolos application.

The files from the remote server will be accessible under the path /sshfs. If you wish to use a different path, please reach out to Nuvolos support.

Last updated