What is the problem you are having with rclone?
I can't get rclone to connect via SSH/SFTP in a Docker container; I have previously used rclone successfuly in this container.
NewFs: couldn't connect SSH: ssh: handshake failed: EOF
If I run the same command on my Mac (on which I'm using Docker), it works just fine.
In the Docker container, I am also able to run a similar command for a Google Drive remote just fine.
I was able to install openssh in the Docker container and connect to the same host I'm trying to connect to with the rclone command.
In a different Docker container, I ran the rclone command successfully.
Run the command 'rclone version' and share the full output of the command.
rclone v1.68.2
- os/version: alpine 3.20.3 (64 bit)
- os/kernel: 6.11.9-orbstack-00279-g4cf512143f2e (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.23.3
- go/linking: static
- go/tags: none
Which cloud storage system are you using? (eg Google Drive)
SSH/SFTP
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
rclone lsd 'home-mac-mini:/Volumes' --log-file '/ExtHDD/rclone.log' -vv
Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.
[home-mac-mini]
type = sftp
host = XXX
pass = XXX
shell_type = unix
md5sum_command = md5 -r
sha1sum_command = none
A log from the command that you were trying to run with the -vv
flag
2024/12/03 16:12:18 DEBUG : rclone: Version "v1.68.2" starting with parameters ["rclone" "lsd" "home-mac-mini:/Volumes" "--log-file" "/venti/rclone.log" "-vv"]
2024/12/03 16:12:18 DEBUG : Creating backend with remote "home-mac-mini:/Volumes"
2024/12/03 16:12:18 DEBUG : Using config file from "/root/.config/rclone/rclone.conf"
2024/12/03 16:14:19 DEBUG : pacer: low level retry 1/10 (error couldn't connect SSH: ssh: handshake failed: EOF)
2024/12/03 16:14:19 DEBUG : pacer: Rate limited, increasing sleep to 200ms
2024/12/03 16:16:19 DEBUG : pacer: low level retry 2/10 (error couldn't connect SSH: ssh: handshake failed: EOF)
2024/12/03 16:16:19 DEBUG : pacer: Rate limited, increasing sleep to 400ms
2024/12/03 16:18:20 DEBUG : pacer: low level retry 3/10 (error couldn't connect SSH: ssh: handshake failed: EOF)
2024/12/03 16:18:20 DEBUG : pacer: Rate limited, increasing sleep to 800ms
2024/12/03 16:20:20 DEBUG : pacer: low level retry 4/10 (error couldn't connect SSH: ssh: handshake failed: EOF)
2024/12/03 16:20:20 DEBUG : pacer: Rate limited, increasing sleep to 1.6s
2024/12/03 16:22:21 DEBUG : pacer: low level retry 5/10 (error couldn't connect SSH: ssh: handshake failed: EOF)
2024/12/03 16:22:21 DEBUG : pacer: Rate limited, increasing sleep to 2s
2024/12/03 16:24:21 DEBUG : pacer: low level retry 6/10 (error couldn't connect SSH: ssh: handshake failed: EOF)
2024/12/03 16:26:21 DEBUG : pacer: low level retry 7/10 (error couldn't connect SSH: ssh: handshake failed: EOF)
2024/12/03 16:28:21 DEBUG : pacer: low level retry 8/10 (error couldn't connect SSH: ssh: handshake failed: EOF)
2024/12/03 16:30:22 DEBUG : pacer: low level retry 9/10 (error couldn't connect SSH: ssh: handshake failed: EOF)
2024/12/03 16:32:23 DEBUG : pacer: low level retry 10/10 (error couldn't connect SSH: ssh: handshake failed: EOF)
2024/12/03 16:32:23 CRITICAL: Failed to create file system for "home-mac-mini:/Volumes": NewFs: couldn't connect SSH: ssh: handshake failed: EOF
If this is a matter of using an external SSH binary, that's fine, but I would definitely appreciate any advice on what to input into rclone besides /usr/bin/ssh
.
So far, I've tried usr/bin/ssh username@10.0.0.85
in the option for an external SSH binary, and it asks me for a password when running the command. After I enter my password, it successfully does my command. How do I pass the password to the command? From searching, it seems I can't do that. I tried installing sshpass and using /usr/bin/sshpass -p 'password' /usr/bin/ssh username@10.0.0.85
in the option for an external SSH binary, and that didn't work. However, I'm able to do that command in the Docker container itself and it works.