Synology NAS allow SSH root user + Rsync

Synology NAS allow SSH root user + Rsync

ssh admin@IP-Address 

sudo su -

Enable SSH for root user
vim /etc/ssh/sshd_config

#go to line
PermitRootLogin  prohibit-password

#change to
PermitRootLogin yes

Restart SSH service
/usr/syno/bin/synosystemctl restart sshd.service

Command to reset root password
synouser --setpw root vLwpV6wUXF9qGKGw

Next go to the Master Synology Admin portal (Enable Rsync service)
> Click to Control Panel
> Click to File Services

Next go to rsync tab , and enable rsync service

 

 

Next go to User and Group and click to root1 user to allow rsync service 

 

  

 

Execute Below command for file sync

#For Netgear NAS
ssh root@IP-address


#For Synology NAS
ssh admin@IP-Address


#For Netgear NAS
sudo su -


Run rsync command to Sync files for Netgear NAS
rsync -avz root@IP-Address:/data/ /data/ 

  

Share on Google Plus

About Penguin Technology

I am a passionate cloud and DevOps professional specializing in Linux and open-source solutions. Through this blog, I share my knowledge and experience with the community, offering tips and insights on cloud technologies and DevOps practices.
    Blogger Comment

0 comments:

Post a Comment