github.com/ncw/rclone@v1.48.1-0.20190724201158-a35aa1360e3e/docs/content/remote_setup.md (about)

     1  ---
     2  title: "Remote Setup"
     3  description: "Configuring rclone up on a remote / headless machine"
     4  date: "2016-01-07"
     5  ---
     6  
     7  # Configuring rclone on a remote / headless machine #
     8  
     9  Some of the configurations (those involving oauth2) require an
    10  Internet connected web browser.
    11  
    12  If you are trying to set rclone up on a remote or headless box with no
    13  browser available on it (eg a NAS or a server in a datacenter) then
    14  you will need to use an alternative means of configuration.  There are
    15  two ways of doing it, described below.
    16  
    17  ## Configuring using rclone authorize ##
    18  
    19  On the headless box
    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
    28  n) No
    29  y/n> n
    30  For this to work, you will need rclone available on a machine that has a web browser available.
    31  Execute the following on your machine:
    32  	rclone authorize "amazon cloud drive"
    33  Then paste the result below:
    34  result>
    35  ```
    36  
    37  Then on your main desktop machine
    38  
    39  ```
    40  rclone authorize "amazon cloud drive"
    41  If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth
    42  Log in and authorize rclone for access
    43  Waiting for code...
    44  Got code
    45  Paste the following into your remote machine --->
    46  SECRET_TOKEN
    47  <---End paste
    48  ```
    49  
    50  Then back to the headless box, paste in the code
    51  
    52  ```
    53  result> SECRET_TOKEN
    54  --------------------
    55  [acd12]
    56  client_id = 
    57  client_secret = 
    58  token = SECRET_TOKEN
    59  --------------------
    60  y) Yes this is OK
    61  e) Edit this remote
    62  d) Delete this remote
    63  y/e/d>
    64  ```
    65  
    66  ## Configuring by copying the config file ##
    67  
    68  Rclone stores all of its config in a single configuration file.  This
    69  can easily be copied to configure a remote rclone.
    70  
    71  So first configure rclone on your desktop machine
    72  
    73      rclone config
    74  
    75  to set up the config file.
    76  
    77  Find the config file by running `rclone config file`, for example
    78  
    79  ```
    80  $ rclone config file
    81  Configuration file is stored at:
    82  /home/user/.rclone.conf
    83  ```
    84  
    85  Now transfer it to the remote box (scp, cut paste, ftp, sftp etc) and
    86  place it in the correct place (use `rclone config file` on the remote
    87  box to find out where).