Need Help with Rclone Authentication on VPS

Hi everyone,

I’m trying to set up Rclone on my VPS (running Ubuntu) to connect to Google Drive, but I’m having several issues and could use some help.

What I’ve Done So Far:

  1. Local Authentication:
  • I installed Rclone on my Windows machine.
  • I used rclone authorize "drive" in CMD to authenticate and got a token JSON.
  1. VPS Configuration:
  • I connected to my VPS using PuTTY.
  • I started configuring Rclone and chose not to use auto-config since I’m on a remote machine.
  • I pasted the token JSON from Windows into the Rclone setup on the VPS.

Problems I’m Facing:

  • Invalid Token Error: When I paste the token JSON into Rclone on the VPS, I get an error:

json

Copiar código

400 Bad Request
{"error": "invalid_grant", "error_description": "Malformed auth code."}
  • SSH Tunnel Issues: I tried setting up an SSH tunnel to authenticate directly through my browser, but the browser couldn’t load the authentication page.

What I Need Help With:

  • Why am I getting the invalid_grant error when using the token?
  • How can I properly authenticate Rclone on my VPS?
  • Any tips on setting up an SSH tunnel correctly for this?

Thanks for any advice you can give!

rclone v1.50.2

  • os/arch: linux/amd64
  • go version: go1.13.8

welcome to the forum,

please post the output of rclone version

might find it easier to Configuring by copying the config file:

if you really want to use ssh, then just follow the docs, i know from experience it works just fine
https://rclone.org/remote_setup/#configuring-using-ssh-tunnel

rclone v1.50.2

  • os/arch: linux/amd64
  • go version: go1.13.8

that is the problem. current version is v1.67.0

  1. remove the old version, using the os package manager
  2. https://rclone.org/install/#script-installation

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.