[TUTO] Enable SSH root access on fw >4.2.11
Posted: 09 May 2021, 09:08
This how to switch ssh access from admin to root on TOS fw >4.2.11.
Note that this is not recommended but some experienced users prefer the ssh root access
Connect via ssh to NAS using the user admin, then type
Enter you admin password and the ssh config file will open with vi editor
To be able to edit the file, we need to change vi in edit mode.
For that press on i
Now scroll down to this line
and adapt it to
Scroll down more to this line
and adapt it to
Now pres ESC key to exit from edit mode
To save and close the file, type :wq
Now reboot the NAS or from TOS WebUI disable and enable back ssh
Open new ssh connection and now you can connect with root
Note that this is not recommended but some experienced users prefer the ssh root access
Connect via ssh to NAS using the user admin, then type
Code: Select all
sudo vi /etc/ssh/sshd_config
To be able to edit the file, we need to change vi in edit mode.
For that press on i
Now scroll down to this line
Code: Select all
PermitRootLogin no
Code: Select all
PermitRootLogin yes
Code: Select all
AllowUsers admin
Code: Select all
AllowUsers root
To save and close the file, type :wq
Now reboot the NAS or from TOS WebUI disable and enable back ssh
Code: Select all
sudo reboot