Add Google Drive to External Rclone on AWS EC2 (Without Web Browser)
This guide explains how to add a Google Drive remote to an external Rclone instance running on a system where a web browser is not available, such as an AWS EC2 Ubuntu server.
In such environments, completing the standard OAuth login flow via browser is not possible. Instead, you can use a local RcloneView installation to obtain the required OAuth token, and then reuse it on the external Rclone running on EC2.
For instructions on how to install and run Rclone on an EC2 instance,
see: 👉 How to Run Rclone Engine on AWS EC2
The process: generate a Google Drive OAuth token on a machine with a browser, then paste that token into the external Rclone running on EC2 via RcloneView.
✅ Step 1: Generate a Google Drive token (pick one method)​
Method A: rclone authorize "drive" (fastest)
- On a machine with a browser and the same rclone version, run:
rclone authorize "drive" - Complete Google login/consent in the browser.
- Copy the printed JSON token block (keep the whole JSON). You will paste this into EC2 in Step 3.
Method B: Use RcloneView embedded remote and copy its token
- On your local PC, add Google Drive using the embedded Rclone (normal browser OAuth).
👉 Quick Guide: Add Google Drive Remote - Open Remote Manager, edit the Google Drive remote, click Show advanced options, and copy the Token field (JSON).
👉 More about editing remotes: Edit Remote Settings
✅ Step 2: Connect to the External Rclone (EC2)​
Open a new window or use your current session in RcloneView to connect to your EC2-hosted Rclone:
- Open
Settings->Connection Managerto either create a new connection to your EC2-hosted Rclone or connect to an existing one if already configured.
👉 Learn more: Connect External Rclone
👉 Learn more: New Window Feature
✅ Step 3: Add Google Drive remote to the external Rclone (paste your token)​
- In the EC2-connected window, go to the
Remotemenu and select+ New Remote. - Choose Google Drive as the provider.
- Input
Remote Nameand clickShow advanced options. - Paste the previously copied OAuth Token into the
Tokenfield. - Click
Add Remotebutton to complete the setup as usual.
If RcloneView shows an error message like the one below, you can safely ignore it.
In most cases, the token configuration is completed successfully despite this message.
After closing the dialog, you should be able to access Google Drive normally.
This is a known UI issue, and we will improve the user experience in the next release.

Once configured, your EC2-based Rclone can now access Google Drive even without browser support. You can manage, sync, and transfer files using RcloneView as usual.