Skip to content
Geek is the Way!
Menu
  • Forums
  • Sobre o blog
  • Contato
  • English
    • Português
Menu

Enabling SSH on your Synology DSM

Posted on July 5, 2020August 14, 2022 by Thiago Crepaldi

Last Updated on August 14, 2022 by Thiago Crepaldi

For future posts, we will need to have SSH enabled on the Synology NAS, so let’s get this out of the way.

Although you can use admin user to connect to Synology DSM, you can create a new user for this purpose. Go to Control Panel >> User and click the Create button, fill in your info and click on Next. In the next screen, add the administrators group to the new user block checking the check box. Click Next until you get to the summary step, in which you click Apply.

Now that you have a viable user, go to Control Panel >> Terminal & SNMP >> Terminal and check the Enable SSH service, optionally change the default Port and click Apply.

From another machine, test your configuration by running ssh <your_user>@<synology_ip>.

Installing private/public keys for your SSH user

After going through the steps from the previous section, you will be able to SSH into your Synology NAS. However, we will also need to SSH from your NAS into other devices for automation.

To accomplish this, you have to either generate a new SSH key or copy your existing into your DSM. If you generated your keys after login in to your DSM, you are done. In order to copy your keys to your NAS, use scp ~/.ssh/id_rsa* <synology_username>@<synology_ip>:~/.ssh. From now on, not only you can connect into your Synology, but also connecting from your Synology to other devices. 

Sometimes scp does not preserve file permissions and SSH’ing from Synology might ask you for password. To fix this, run chmod 644 ~/.ssh/id_rsa.pub and chmod 700 ~/.ssh/id_rsa.

Share this:

  • Tweet

Related

Leave a ReplyCancel reply

LIKED? SUPPORT IT :)

Buy Me a Coffee


Search


Categories

  • Cooking (1)
  • Homelab (79)
    • APC UPS (6)
    • pfSense (40)
    • Proxmox (20)
    • Shopping (1)
    • Supermicro (2)
    • Synology NAS (8)
    • Ubiquiti (6)
    • UDM-Pro (4)
  • Random (3)
  • Wordpress (1)

Tags

Agentless monitoring (3) AP9631 (3) Apache2 (3) APC UPS (6) Bind9 (3) certificates (5) cron (2) DDNS (5) debian (3) DNS (7) DSM (6) Dynamic DNS (4) Firewall (9) gmail (3) IPSEC (2) Let's Encrypt Certificates (7) monitoring (18) networking (21) PBS (3) pfBlockerNG (2) pfsense (43) port forwarding (3) proxmox (17) proxmox backup server (3) proxmox community (2) proxmox virtual environment (16) pve (5) rev202207eng (76) routing (2) security (28) SNMP (4) SNMPv1 (3) ssh (4) SSL (6) Synology (7) udm-pro (5) unifi (6) unifi controller (3) Unifi Dream Router (2) UPS (5) VLAN (4) vpn (9) wifi (4) Zabbix (18) Zabbix Agent2 (11)

See also

Privacy policy

Sitemap

©2025 Geek is the Way! | Design by Superb