looks like you are trying to setup rclone on an headless machine.
need to follow the instruction in the weblink. https://rclone.org/remote_setup/
to run rclone authorize "drive" ... on a machine with a web browser.
so i have seen this Remote Setup many times . i want to setup the rclone with gdive but i following all previous steps but this time i m not getting a valid token
please see this image i have 2 servers 1. where i have run all the commands as you given above and In 2 nd server i run only rclone authorize "drive" this command but last 10 minutes its not giving me any token please help to out this
on your PC run rclone authorize "gdrive"
then, using the web browser, login to google
rclone authorize "drive"
2022/03/25 15:18:00 NOTICE: If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth?state=SyN_snJrCmz7ef0sJSlbkw
2022/03/25 15:18:00 NOTICE: Log in and authorize rclone for access
2022/03/25 15:18:00 NOTICE: Waiting for code...
2022/03/25 15:20:04 NOTICE: Got code
Paste the following into your remote machine --->
{"access_token":".GuVR5Nl5G1kqynZ27yu4fUqw708oRW-mxMM4EmxQTAj4-9XpI","token_type":"Bearer","refresh_token":"1//0d1KO_er3u5toCgYIARAAGA0SNwF-L9IrKAenvkLUgJJ2Qe-J2H71q0ddypDKlTw5do","expiry":"2022-03-25T16:20:03.338159-04:00"}
<---End paste