(\(\
   ¸". ".
   (  . .)
   |   ° ¡
   ¿     ;
 c?".UJ"

T. Colin Pott

How to SSH into your Synology NAS

You wouldn’t know it from Synology’s website, but every modern Synology NAS runs an embedded version of Linux. With an insignificant amount of effort on your part, your Synology NAS will provide you with access to the Linux command line interface using the SSH protocol. For most Synology users command line access is hardly necessary and, frankly, rarely helpful. Regardless, there are several edge cases where it’s necessary. If you need to access your NAS’s command line interface, this guide is for you.


  1. Enable command line access
  2. Connect via SSH

1. Enable command line access

  1. Sign in to your NAS from the web UI using an admin account.
  2. Open Control Panel and select Terminal.
Screenshot of Synology web UI control panel showing the Terminal screen
  1. Select Enable SSH service and then Apply. This enables access to the command line interface using the SSH clients.

With these steps complete, your NAS is now ready for you to connect.


2. Connect via SSH

The SSH client you connect with varies according to the operating system you use. For Windows we’ll use PowerShell, for macOS the Terminal application, and Linux the default terminal emulator.

Windows

  1. Open the Windows PowerShell application. This is included in most versions of Windows.
  2. Enter ssh username@ipaddress -p22, substituting your DSM username, NAS IP address, and if you set a port other than 22, that port number.
  3. You will see a message about an encryption key, and a prompt asking if you want to continue. Type yes .
  4. Enter your DSM account password at the password prompt.

You should now be logged in to your Synology NAS via SSH. When you are ready to close the connection, type exit at the command line and press enter.

macOS

  1. Open macOS’s Terminal application.
  2. Enter ssh username@ipaddress -p 22, substituting your DSM username, NAS IP address, and if you set a port other than 22, that port number.
  3. You will see a message about an encryption key, and a prompt asking if you want to continue. Type yes.
  4. Enter your DSM account password at the password prompt.

You should now be logged in to your Synology NAS via SSH. When you are ready to close the connection, type exit at the command line and press return.

Linux

  1. Open a Linux terminal emulator. On most Linux distributions this is achieved by pressing ctrl + alt + t on the keyboard.
  2. Enter ssh username@ipaddress -p 22, substituting your DSM username, NAS IP address, and if you set a port other than 22, that port number.
  3. You will see a message about an encryption key, and a prompt asking if you want to continue. Type yes.
  4. Enter your DSM account password at the password prompt.

You should now be logged in to your Synology NAS via SSH. When you are ready to close the connection, type exit at the command line and press return.


That’s it for this guide. Good luck and have fun!!1!!!

-colin