Slow data transfer speeds on a synology NAS

Transferring files to and from my synology NAS over SMB protocol seemed very slow to me on the shares I have.

After a little bit of investigation I found that the SMB settings by default are only using SMB2 and not SMB3!!!!

Boom, now transfer speeds are super fast between PC and Synology NAS, yay!!

SMB3 Tranfer Speed - Slow data transfer speeds on a synology NAS

Instructions to change the advanced settings here =

Login to the Synology NAS and click on Control Panel:

nas control panel - Slow data transfer speeds on a synology NAS

Click the enable SMB service checkbox then head into advanced settings –

nas smb1 800x312 - Slow data transfer speeds on a synology NAS

In advanced settings, set the maximum SMB protocol to SMB3, the minimum to SMB 2, and I disabled transport encryption mode as I am running in my home network only for SMB (you can set this to either dependant on your situation). I also enabled opportunistic locking.

nas smb2 - Slow data transfer speeds on a synology NAS

After using these settings it took my file transfres from around 7 MB/s to around 100 MB/s – nice…. :O)

Accessing Synology NAS with SSH: Windows

To access the synology NAS using a tool such as Winscp on Windows and to access ALL files on the NAS (root access), we normally need to use sudo in Linux. There is no way to add this command fully to winsc to allow this to happen – or is there?

As it happens there is and after these instructions you can then connect and manage your synology NAS via SSH and WinSCP to manage the files, yay.

Instructions here –

WinSCP (GUI) for DSM6 * and higher:

Note: Config File Editor only works if you are logged in as user admin. 

1 – Download ConfigFileEditor-noarch-14 and unzip it.
2 – Install it manually in Package Center. 
3 – Start Config File Editor and choose the file “Config File Editor”: 

index.php?action=dlattach;ts=1477342656;topic=21215 - Accessing Synology NAS with SSH: Windows

4 – At the end of that file, add:

/etc/sudoers,sudoersand Save: 

index.php?action=dlattach;ts=1477342657;topic=21215 - Accessing Synology NAS with SSH: Windows

5 – Exit Config File Editor. 
6 – Put the Config File Editor package in Package Center and restart. 
7 – Open Config File Editor again and choose the file sudoers. 
8 – Add:

admin ALL = NOPASSWD: ALL

Save and close Config File Editor (only then will the file be saved). 

8.1 User admin (above) can / may also be another user with administrator rights. 

index.php?action=dlattach;ts=1477342657;topic=21215 - Accessing Synology NAS with SSH: Windows

9 – Download: http://winscp.net/eng/download.php
10 – Install WinSCP 
11 – Make sure SSH Service is on in DSM: Control Panel> Terminal. 
12 – Start WinSCP click on new 
13 – File protocol: SCP 
14 – Target computer address: <NAS-IP> 
15 – Port number: 22 
16 – Username: as specified in point 8 
17 – Root only: Advanced -> SCP / Shell and type in: sudo -i 
17.1 – Not root: Advanced -> SCP / Shell and type in: / bin / sh 
18 – Save
19 – Log in with Password of the relevant user, see point 8 / 8.1. 

NOTE (only for root): There is a high chance that you will have to repeat the above Config File Editor section after a DSM6 * update or upgrade. 

WinSCP also has PuTTY (Linux knowledge required) built in, if you also have PuTTY installed: 

index.php?action=dlattach;ts=1416066714;topic=21215 - Accessing Synology NAS with SSH: Windows

DSM6 and higher: If you only want PuTTY (CLI: Linux / DSM knowledge required):
1 – Ensure that SSH-Service is switched on in DSM: Control Panel> Terminal. 
2 – Download putty.exe 
http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
3 – Start putty.exe 
4 – Enter your NAS’s IP address 
5 – Make sure SSH clicked is 
6 – Save …. enter a name in “Saved Sessions” 
7 – Click on Open 
8 – You get Putty screen with “login as:” 
9 – Enter: admin <enter> (PS:
10 – password: <admin password> <enter> 
11 – to become root, give the following command: sudo -i 
12 – password: same password as in 10. 

 

Enjoy managing your synology NAS via SSH unrestricted!!