What is the problem you are having with rclone?
The sftp
configuration doesn't seem to be working.***
Run the command 'rclone version' and share the full output of the command.
$ rclone version
rclone v1.58.1
- os/version: centos 7.9.2009 (64 bit)
- os/kernel: 3.10.0-1160.62.1.el7.x86_64 (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.17.9
- go/linking: static
- go/tags: none
Which cloud storage system are you using? (eg Google Drive)
sftp
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
rclone --config ~/rclone.conf lsd sftp_remote:/ -vv
The rclone config contents with secrets removed.
[sftp_remote]
type = sftp
sftp-user = guest
sftp-key-file = /tmp/keys/key
sftp-key-use-agent = false
sftp-host = X.X.X.X
(user and IP have been replaced, but they don't seem to be the problem--see note at bottom)
A log from the command with the -vv
flag
2022/05/31 19:59:18 DEBUG : rclone: Version "v1.58.1" starting with parameters ["rclone" "--config" "/home/<username>/rclone.conf" "lsd" "sftp_remote:/" "-vv"]
2022/05/31 19:59:18 DEBUG : Creating backend with remote "sftp_remote:/"
2022/05/31 19:59:18 DEBUG : Using config file from "/home/<username>/rclone.conf"
2022/05/31 19:59:18 Failed to create file system for "sftp_remote:/": couldn't connect to ssh-agent: SSH agent requested but SSH_AUTH_SOCK not-specified
***When I run the command
RCLONE_SFTP_USER=guest RCLONE_SFTP_HOST=X.X.X.X RCLONE_SFTP_KEY_FILE=/tmp/keys/key rclone --config ~/rclone.conf lsd sftp_remote:/
it works fine and I can see the files on the remote. So I think the issue must be that the configuration information in the file isn't getting picked up for some reason