SFTP SSH Handshake failed

What is the problem you are having with rclone?

SFTP Handshake failed. Cannot connect to SFTP with password auth.
This went fine all the time. On restarting the service, this error ocurred.

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

rclone v1.69.0-beta.8419.ca8860177

  • os/version: ubuntu 22.04 (64 bit)
  • os/kernel: 5.15.0-125-generic (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)

SFTP

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

rclone lsd metaembySSH: -vv --retries=1

Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.

[metaembySSH]
type = sftp
host = XXX
user = XXX
pass = XXX
shell_type = unix
connections = 40
ask_password = false
concurrency = 30

A log from the command that you were trying to run with the -vv flag

2024/11/25 10:00:37 DEBUG : Creating backend with remote "metaembySSH:"
2024/11/25 10:00:37 DEBUG : Using RCLONE_CONFIG_PASS password.
2024/11/25 10:00:37 DEBUG : Using config file from "/root/.config/rclone/rclone.conf"
2024/11/25 10:00:42 DEBUG : pacer: low level retry 1/10 (error couldn't connect SSH: ssh: handshake failed: read tcp XX.XX.XX.XX:37546->XX.XX.XX.XX:22: read: connection reset by peer)
2024/11/25 10:00:42 DEBUG : pacer: Rate limited, increasing sleep to 200ms
2024/11/25 10:00:47 DEBUG : pacer: low level retry 2/10 (error couldn't connect SSH: ssh: handshake failed: read tcp XX.XX.XX.XX:37556->XX.XX.XX.XX:22: read: connection reset by peer)
2024/11/25 10:00:47 DEBUG : pacer: Rate limited, increasing sleep to 400ms

hi,

to be clear, you ran rclone lsd on the command line, correct?

can you test using latest stable, not beta?

might remove the following and test again.

connections = 40
concurrency = 30

Iatest beta and stable are working now without changing anything! :face_with_peeking_eye:

While error ocurred, I was able to login with Filezilla.

beta and stable work without problems now.