How can i auth onedrive in browser in ubuntu server

I tried to auth my onedrive account with rclone with 127.0.0.1:53682/auth,howerver i am using the remote ssh with no gui interact ,so i can't auth it directly through localhost ,how do i auth it remotely?
I tried access to the http>//myserverip:53682/auth but fail to with no data sent.

Is there anyway i could work it through the auth without any gui interact?

What is the problem you are having with rclone?

I can’t auth the onedrive with rclone through remote host

Run the command 'rclone version' and share the full output of the command.

rclone v1.71.2

  • os/version: ubuntu 20.04 (64 bit)
  • os/kernel: 6.6.7-x64v3-xanmod1 (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.25.3
  • go/linking: static
  • go/tags: none

Which cloud storage system are you using? (eg Google Drive)

Microsoft Onedrive

The command you were trying to run (eg rclone copy /tmp remote:tmp)

-

Paste command here

e) Edit existing remote
n) New remote
d) Delete remote
r) Rename remote
c) Copy remote
s) Set configuration password
q) Quit config
e/n/d/r/c/s/q> n
name> remote
Type of storage to configure.
Enter a string value. Press Enter for the default ("").
Choose a number from below, or type in your own value
[snip]
XX / Microsoft OneDrive
   \ "onedrive"
[snip]
Storage> onedrive
Microsoft App Client Id
Leave blank normally.
Enter a string value. Press Enter for the default ("").
client_id>
Microsoft App Client Secret
Leave blank normally.
Enter a string value. Press Enter for the default ("").
client_secret>
Edit advanced config? (y/n)
y) Yes
n) No
y/n> n
Remote config
Use web browser to automatically authenticate rclone with remote?
 * Say Y if the machine running rclone has a web browser you can use
 * Say N if running rclone on a (remote) machine without web browser access
If not sure try Y. If Y failed, try N.
y) Yes
n) No
y/n> y
If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth

Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.

Paste config here

A log from the command that you were trying to run with the -vv flag

Paste  log here

There are multiple ways. All described in docs:

Also you can always configure rclone locally and simply copy/paste config file.

1 Like

yes i can work with that!

1 Like

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