What is the problem you are having with rclone?
I have ssh key setup, able to ssh to the remote server with command ssh user@host using id_rsa key file. However, rclone sync failed with ssh authentication error.
Run the command 'rclone version' and share the full output of the command.
rclone --version
rclone v1.57.0-DEV
- os/version: userful 9 (64 bit)
- os/kernel: 5.14.0-307.el9.x86_64 (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.17.2
- go/linking: dynamic
- 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 -vv sync /var/xxx/ ha_peer:/var/xxx
The rclone config contents with secrets removed.
[ha_peer]
type = sftp
host = 192.168.163.194
user = files
key_file = /home/files/.ssh/id_rsa
A log from the command with the -vv
flag
rclone -vv sync /var/source-content/ ha_peer:/var/source-content/
2023/07/04 12:32:58 DEBUG : rclone: Version "v1.57.0-DEV" starting with parameters ["rclone" "-vv" "sync" "/var/source-content/" "ha_peer:/var/source-content/"]
2023/07/04 12:32:58 DEBUG : Creating backend with remote "/var/source-content/"
2023/07/04 12:32:58 DEBUG : Using config file from "/home/files/.config/rclone/rclone.conf"
2023/07/04 12:32:58 DEBUG : Creating backend with remote "ha_peer:/var/source-content/"
2023/07/04 12:32:58 DEBUG : pacer: low level retry 1/10 (error couldn't connect SSH: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain)
2023/07/04 12:32:58 DEBUG : pacer: Rate limited, increasing sleep to 200ms
2023/07/04 12:32:58 DEBUG : pacer: low level retry 2/10 (error couldn't connect SSH: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain)
2023/07/04 12:32:58 DEBUG : pacer: Rate limited, increasing sleep to 400ms
2023/07/04 12:32:59 DEBUG : pacer: low level retry 3/10 (error couldn't connect SSH: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain)
2023/07/04 12:32:59 DEBUG : pacer: Rate limited, increasing sleep to 800ms
2023/07/04 12:32:59 DEBUG : pacer: low level retry 4/10 (error couldn't connect SSH: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain)
2023/07/04 12:32:59 DEBUG : pacer: Rate limited, increasing sleep to 1.6s
2023/07/04 12:33:00 DEBUG : pacer: low level retry 5/10 (error couldn't connect SSH: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain)
2023/07/04 12:33:00 DEBUG : pacer: Rate limited, increasing sleep to 2s
2023/07/04 12:33:01 DEBUG : pacer: low level retry 6/10 (error couldn't connect SSH: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain)
2023/07/04 12:33:03 DEBUG : pacer: low level retry 7/10 (error couldn't connect SSH: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain)
2023/07/04 12:33:05 DEBUG : pacer: low level retry 8/10 (error couldn't connect SSH: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain)
2023/07/04 12:33:07 DEBUG : pacer: low level retry 9/10 (error couldn't connect SSH: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain)
2023/07/04 12:33:09 DEBUG : pacer: low level retry 10/10 (error couldn't connect SSH: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain)
2023/07/04 12:33:09 Failed to create file system for "ha_peer:/var/source-content/": NewFs: couldn't connect SSH: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain