How do I access the command line interface on a Synology NAS.
Specifically, I am trying to access the command line on a Synology DS1520+, running DSM 7.1, so I can enter the command:
sudo shutdown -h
,
so I can power down the NAS remotely.
I am pretty sure I should use SSH and unix/linux style commands.
To access the Terminal of your Synology NAS, you will have to enable the SSH service of your Synology NAS. To do that, open the Control Panel app and click on Terminal & SNMP as marked in the screenshot below. From the Terminal tab, check Enable SSH service and click on Apply. Click on OK.
Login into your NAS then go to Control Panel / Terminal & SNMP / Terminal tab – Check Enable SSH service and set port 22 then click Apply. Follow the instructions in the image below. Note: It is strongly recommended not to use port 22, but to change it to something else, between port 49152 and port 65535.
Manage your Synology NAS with DSM mobileOpen your mobile web browser. In the address bar, enter the IP address of your NAS. Enter your DSM account name and password and tap Sign In.
You can use your favourite telnet (not recommended) or ssh (recommended) application to connect to your Synology box and use it as a terminal.
If you need more detailed instruction read https://www.synology.com/en-global/knowledgebase/DSM/help/DSM/AdminCenter/system_terminal
I use GateOne from the synocommunity.
Go into settings in Package Center and add http://packages.synocommunity.com/ as a package source. Then you should be able to add it easily via Package Center.
The current windows 10 (Version 1803 (OS Build 17134.1)) has SSH built in. With that, just enable SSH from the Control Panel, Terminal & SNMP, be sure you are using an account in the Administrator's group, and you're all set.
Launch Powershell or CMD, enter ssh yourAccountName@diskstation
The first time it will cache off your certificate.
Further detailed explanations can be found on the synology docs page:
How to login to DSM with root permission via SSH Telnet
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With