Skip to content

Support us at

Authors: fire1ce | Created: 2023-01-05 | Last update: 2023-01-05

Enable Synology SSH Root Login

Synology DSM allows Linux experts to use the SSH terminal. By default you need to log in as a user and then enter "sudo su root" can be inconvenient, but there is the option of logging in as root directly.

Section

First, the DSM Control Panel is called up, Extended mode must be activated so that the required icon Terminal & SNMP appears. Under Terminal & SNMP the SSH-Service just can enable.

Connect to Synology dns with your admin user and password. Change user to root with the command "sudo su" and enter the Admins's password. Set the root user password with the command below:

sudo synouser -setpw root 'new_root_password'

Edit the file /etc/ssh/sshd_config and change the line PermitRootLogin no to PermitRootLogin yes.

sudo vi /etc/ssh/sshd_config

Reboot the Synology NAS to apply the changes.

Comments