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