Open mantzas opened 2 years ago
login --help
may give you a hint. If you have 2FA enabled (note, you'd need to set it up using webclient or another app), you will be prompted for the 2FA code when you try to login, or if you want, you can pass it as an argument of the login command:
--auth-code=XXXX
Some resourceful references for NAS documentation: Our landing page: https://mega.nz/nas The general MEGAcmd page that documents what MEGAcmd does and how it works https://github.com/meganz/MEGAcmd particularly: https://github.com/meganz/MEGAcmd#nas-systems And our User Guide: https://github.com/meganz/MEGAcmd/blob/master/UserGuide.md particularly: https://github.com/meganz/MEGAcmd/blob/master/UserGuide.md#nas-support
And if you want to build it yourself: https://github.com/meganz/MEGAcmd/tree/master/build/SynologyNAS
@polmr Hey, thanks for the docs but I know all that already. I have tried mutliple ways to setup megacmd on my synology and have always failed.
mega-login xxx yyy --auth-code=123456 //reported success by fetching nodes
mega-sync /volume1/documents/ Documents // which did not return an error
mega-sync // ERROR reading output code: 104
Do you have a walkthrough somewhere? Is there another process?
And how secure it is to use megacmd on Synology? I mean if I set up an automatic sync (if it is possible, I don't know yet!), where are the credentials stored or how does the mega login work in that situation? I mean, if somebody steals my Synology NAS, does that person get access to my mega account? I don't have 2FA because I feel that it has its own pitfalls and in the worst case scenario, the user might be locked out their account because of 2FA.
Hi,
first of all it would be nice if there is full example on how to setup megacmd on synology and how to set it up. I am especially not sure how to login when I have 2FA integrated in the login process. Ideally I would like a walkthrough on what the script should look like in order to use cmd from within synology. Thanks