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.
Create a personal 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 .
In the Nuvolos web UI, go to User Settings → SSH Keys.
Click + GENERATE SSH KEY.
Add the generated public key to your server.
Nuvolos automatically tries all of your SSH keys when using SSHFS.
Create a shared SSH key
To use the same SSH key for connecting from a specific Space with different users, use the space secrets feature. Set secrets with the following names - they are tried as private keys during the SSHFS connection phase:
id_rsa
id_dsa
id_ecdsa
The key type does not need to match the filename (e.g. a RSA key can be put under id_dsa), but it's important to use all lowercase for the above names. Also, make sure to add a trailing new line after the -----END OPENSSH PRIVATE KEY---— line when setting the secret.
Configure connection environment variables
Next, set the following environment variables, either on a user level in your Nuvolos user settings or on a space/organization level in the space/organization settings:
SSHFS_USER: The username to use when connecting with the remote host. (default: Nuvolos username)SSHFS_PORT: The port to connect on to the remote host. (default: 22)SSHFS_SERVER: The SSH server Nuvolos applications will connect to.SSHFS_REMOTE_PATH: The path on the remote SSH server to be mounted. Use full path and avoid ~ as it will be expanded on Nuvolos, not the remote.
Debugging SSHFS connection
For verbose troubleshooting, set SSHFS_DEBUG=1. This enables detailed logging in the SSHFS sidecar; check the session logs to troubleshoot.
Enable the SSHFS add-on
Enable the SSHFS add-on on the Application configuration screen. Restart the Application for changes to take effect.
Files from the remote server are accessible under /sshfs. To use a different path, contact Nuvolos support.
Last updated
Was this helpful?