github.com/10XDev/rclone@v1.52.3-0.20200626220027-16af9ab76b2a/docs/content/remote_setup.md (about) 1 --- 2 title: "Remote Setup" 3 description: "Configuring rclone up on a remote / headless machine" 4 --- 5 6 # Configuring rclone on a remote / headless machine # 7 8 Some of the configurations (those involving oauth2) require an 9 Internet connected web browser. 10 11 If you are trying to set rclone up on a remote or headless box with no 12 browser available on it (eg a NAS or a server in a datacenter) then 13 you will need to use an alternative means of configuration. There are 14 two ways of doing it, described below. 15 16 ## Configuring using rclone authorize ## 17 18 On the headless box run `rclone` config but answer `N` to the `Use 19 auto config?` question. 20 21 ``` 22 ... 23 Remote config 24 Use auto config? 25 * Say Y if not sure 26 * Say N if you are working on a remote or headless machine 27 y) Yes (default) 28 n) No 29 y/n> n 30 For this to work, you will need rclone available on a machine that has 31 a web browser available. 32 33 For more help and alternate methods see: https://rclone.org/remote_setup/ 34 35 Execute the following on the machine with the web browser (same rclone 36 version recommended): 37 38 rclone authorize "amazon cloud drive" 39 40 Then paste the result below: 41 result> 42 ``` 43 44 Then on your main desktop machine 45 46 ``` 47 rclone authorize "amazon cloud drive" 48 If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth 49 Log in and authorize rclone for access 50 Waiting for code... 51 Got code 52 Paste the following into your remote machine ---> 53 SECRET_TOKEN 54 <---End paste 55 ``` 56 57 Then back to the headless box, paste in the code 58 59 ``` 60 result> SECRET_TOKEN 61 -------------------- 62 [acd12] 63 client_id = 64 client_secret = 65 token = SECRET_TOKEN 66 -------------------- 67 y) Yes this is OK 68 e) Edit this remote 69 d) Delete this remote 70 y/e/d> 71 ``` 72 73 ## Configuring by copying the config file ## 74 75 Rclone stores all of its config in a single configuration file. This 76 can easily be copied to configure a remote rclone. 77 78 So first configure rclone on your desktop machine with 79 80 rclone config 81 82 to set up the config file. 83 84 Find the config file by running `rclone config file`, for example 85 86 ``` 87 $ rclone config file 88 Configuration file is stored at: 89 /home/user/.rclone.conf 90 ``` 91 92 Now transfer it to the remote box (scp, cut paste, ftp, sftp etc) and 93 place it in the correct place (use `rclone config file` on the remote 94 box to find out where).