Authentication against google drive on a headless, tiny machine?


How do I setup rclone to authenticate against google drive from a headless, tiny linux machine?

Google’s authentication system requires javascript in the browser, and i didnt find one (in debian stable) that had javascript support compiled in. I assume there are other ways (like the google-cloud python command line framework?) to get authentication tokens etc. Where is that way described? I would prefer an authmatic way, of course.

thanks for your help!


When you add the new remote you have to select No when it asks you if you want to use auto config. This will spit out a link that you can go to from any computer and authorize rclone on your google account. Then you just have to copy and paste the verification code that the website gives you and you’re good to go.

You can also do the config on a computer that has a full web browser and copy over that section from the config file if you find that easier.