Rclone SFTP - new FS error

What is the problem you are having with rclone?

I have configured an SFTP remote from RClone and am unable to use the Rclone API to move files from one folder to another within SFTP. The URL being used for movement is : http://localhost:5572/sync/move

Error received:

failed to make Fs: NewFs: couldn't connect SSH: ssh: handshake failed: EOF

RClone config is created with username/password for SFTP

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

rclone v1.65.2

  • os/version: Microsoft Windows 11 Pro 23H2 (64 bit)
  • os/kernel: 10.0.22631.3447 (x86_64)
  • os/type: windows

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


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

API call -http://localhost:5572/sync/move

with Basic auth headers and API body

{"srcFs": "<Remote clone id>:/folder1/sub-folder1/sub-folder2", 
  "dstFs": "<Remote clone id>:/folder1/sub-folder1/sub-folder4", 
  "_async": "False", 
  "createEmptySrcDirs": "True"}```

#### Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.
<!--  You should use 3 backticks to begin and end your paste to make it readable.   -->

type = sftp
host = XXX
user = XXX
pass = XXX
shell_type = unix
md5sum_command = none
sha1sum_command = none

The same flow when executed with CLI, works fine.

RClone move <<RemoteID:Source>>> <<RemoteID:Target>>>

hard to know what the issue is, exact command was not posted, debug log was not posted.

Hi, The exact command is the API call (URL provided above). Pls let me know what sort of logs are needed since the API request is being posted through postman/REST client..