[Tutorial] Mounting synology nas folders into Ubuntu via SSHFS
Posted: 21 Jun 2018, 15:17
How to mount a folder on a synology nas with DSM 6.2 into a ubuntu 18.04 (bionic) based operating system to be able to browse through it like its a local harddrive
Hi there,
as i recently needed this, i wanted to share the results of this to others who may have similiar use cases.
-->> I tried many methods to reach best compatibility and speed while connected remotely over the internet to my synology nas. However webdav has too many stability and speed problems yet. The solution until now is to use SSHFS a combination of ssh and ftp mounted into a folder/filesystem with local application and explorer support<<--
1. open your synology DSM "control panel"
2. navigate to "File Services" and then to FTP
3. Tick "[ X ] Enable SFTP service"

-> Choose your desired "Portnumber" and port forward it in your router/fritzbox to your synology nas
-> authorize the user that will have access via hhfs protocol in your synology nas via DSM "control panel" as following:
4. open "User" and click on the user you want to authorize and then click "Edit"
Click "Applications" and then tick "FTP ALLOW [ X ] "

-> mount a synology folder into ubuntu as following:
5. open your terminal/shell
make a folder where the files from the synology nas should appear in with the example command:
- Enter your root password of ubuntu when asked -
Now use the following example code with 'replacement' of your own needs:
The arguments:
'idmap=user,allow_other'
is to authorize you in your ubuntu to be able to get access rights to a root mounted folder as normal user which is needed to be able to access the mounted folder via any file explorer and other apps that are not started/granted root access
Hint: All folder accessibilty and visibility is controlled by the synology nas user control panel
Hi there,
as i recently needed this, i wanted to share the results of this to others who may have similiar use cases.
-->> I tried many methods to reach best compatibility and speed while connected remotely over the internet to my synology nas. However webdav has too many stability and speed problems yet. The solution until now is to use SSHFS a combination of ssh and ftp mounted into a folder/filesystem with local application and explorer support<<--
1. open your synology DSM "control panel"
2. navigate to "File Services" and then to FTP
3. Tick "[ X ] Enable SFTP service"
-> Choose your desired "Portnumber" and port forward it in your router/fritzbox to your synology nas
-> authorize the user that will have access via hhfs protocol in your synology nas via DSM "control panel" as following:
4. open "User" and click on the user you want to authorize and then click "Edit"
Click "Applications" and then tick "FTP ALLOW [ X ] "
-> mount a synology folder into ubuntu as following:
5. open your terminal/shell
make a folder where the files from the synology nas should appear in with the example command:
Code: Select all
sudo mkdir /media/synologysshfs
Now use the following example code with 'replacement' of your own needs:
Code: Select all
sudo sshfs 'hostuser'@'name or adress of host':/ '/media/synologysshfs' -p 'sftp port' -o idmap=user,allow_other
'idmap=user,allow_other'
is to authorize you in your ubuntu to be able to get access rights to a root mounted folder as normal user which is needed to be able to access the mounted folder via any file explorer and other apps that are not started/granted root access
Hint: All folder accessibilty and visibility is controlled by the synology nas user control panel