Remote file system mount with sshfs
In short - when to use sshfs
If you want to browse through your remote directory (on your edge device) and copy some files here is how to do it on
sshfs in the background. This way you can conveniently use your favorite file manager.
First of all you need to establish an ssh connection with
qbee-connect. You will obtain a command similar to
ssh -p 12345 username@localhost
$PORTbe the variable holding the value for the port number (here: 12345) and
$USERbe the variable holding the value for the user name (here: username).
$SOURCE_DIRECTORY holds the variable of your source directory on your remote device that you want to mount locally (e.g. the home directory
Additionally, we need to specify a target directory on our local machine, where we want the remote file system to be located at. This value is stored in
You can skip specifying
$SOURCE_DIRECTORY if you simply want to mount your remote home directory
Make sure you have
sshfs installed, otherwise install it via your package manager (e.g. in Ubuntu use
sudo apt-get install sshfs). Got to your terminal and use
sshfs -o idmap=user,port=$PORT $USER@localhost:$SOURCE_DIRECTORY $TARGET_DIRECTORY
Now you should be able to see your remote file system mounted in
$TARGET_DIRECTORY which is accessible through your file manager or the command line.
To make your
FUSE file system mountable on a Windows machine, you will first have to install
SSHFS-Win. The necessary links and installation details are provided at the official github repository. Once the packages are up and running you can either go to your command prompt and enter
net use $TARGET_DIRECTORY \\sshfs\$USER@localhost!$PORT\$SOURCE_DIRECTORY
Enter the user name for 'sshfs': $USER Enter the password for sshfs: ********
Or you can go to the Windows Explorer, click on
This PC and select
map network drive. Using the latter method you provide the
$TARGET_DIRECTORY through a UI and just have to specify the command
\\sshfs\$USER@localhost!$PORT\$SOURCE_DIRECTORY. Again, we advise to follow the instructions from the official github repository.
Under Windows it makes sense to use a new drive letter for the
Source directory in Windows
When specifying a source directory on the remote device you must use
\ as a separator instead of
/. Additionally, you have to specify the source directory relative to your home directory. This means specifying
\home\username\sample_dir does not work, instead you have to provide
Use the same commands as for Linux but first you have to install FUSE for macOS.