Posts

Showing posts with the label rsync

Get access on your synology nas having ssh disabled without reset when you cannot bypass the Two-Factor Authentication

Few days ago, I couldn't connect to my synology backup NAS because I've reset my phone and therefore lost my Google Authenticator's data. When I've tried to click the "Lost my phone" link, I got a message : you have exceeded your emergency code limit As this is a backup NAS, I've enabled only few services, i.e. not SSH. And there is only one administrator account on this NAS. I didn't wanted to reset my NAS and reconfigure all parameters. Hopefully for me, rsync was enabled and I had another nas available with 2FA enabled also. So I've simply overriden the google_authenticator file using rsync. That also lets me now to connect to my both NAS using the same code :) Here is the command line : rsync -avzh /usr/syno/etc/preference/admin/google_authenticator root@192.168.1.2:/usr/syno/etc/preference/admin/ 192.168.1.2 is the ip address of the NAS I wanted to get access you have to use 'root' user, not 'admin'. And the...

Check the reason why Synology Network Backup failed

If you have encountered errors with the Synology Network Backup and that the log message is as vague as Network Backup failed to backup task [xxx] to [xxxx.synology.me]. ([23] Some files could not be transferred. Possible reasons: 1) backup user has no permission to access the files, 2) illegal file name. 3) file name too long) and you want to get more information about the error, simply connect to the console and open the file /var/log/rsync.error