Enabling the Command Line Interface

From SynologyWiki

Jump to: navigation, search


This document will guide the user in enabling the Command Line Interface (CLI) of the Synology System. The CLI is a Linux-based Shell, where users who are familiar with this interface can perform management and manipulation of the Synology System.
Please note that improper manipulation or modification of the Synology server may result in machine malfunction or loss of data.
Please read the General Disclaimer before modifying the Synology product.

This guide will cover two different protocols of accessing the same CLI, Telnet and SSH.


Enabling the Command Line Interface

This guide was written for Synology Disk Station Manager DSM2.0-0640

Step 1:

Begin by logging into the Synology Disk Station Manager using the Administration account.

Step 2:

Enable the CLI as follows

  • A) Open the Terminal Services Menu, from the Network Services Folder
  • B) Enable the Telnet or SSH Service to access the CLI
  • C) Click OK to confirm this operation


Service Specifications

  • Port Numbers:
    • Telnet: 23
    • SSH: 22
  • Login Accounts: root, admin
    • Only root and admin have access to the CLI, please refer to this forum discussion for further information
  • Password: same as the administrative password of the Synology System


How to access the CLI

A terminal client must be used to access the CLI, such as Windows Telnet Service, or Putty for SSH clients.


Step 1:

  • Launch the Terminal Application
    • For Windows Users, go to [Start] -> [Run] and type without quotes "telnet synologyServerName" where "synologyServerName" is the name of the Synology product.
      • Default names are: "diskstation" , "cubestation" , "rackstation"

Step 2:

  • Login using the credentials listed under "Service Specifications"
Personal tools