Rclone: Failed to create file system for "remote:": NewFs: couldn't connect SSH: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain

Created on 23 Oct 2020  路  2Comments  路  Source: rclone/rclone

Hey,

I think I've found a bug with rclone using SFTP:

What is the problem you are having with rclone?

I've set up an account with a backup provider. The provider offers SSH/SFTP uploads. I've configured the SSH key and can connect with ssh user@host and sftp user@host.

The same with rclone doesn't work:

Failed to create file system for "remote:": NewFs: couldn't connect SSH: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain

I've tried without key_file and with my key_file as an absolute path - both fail.

What is your rclone version (output from rclone version)

rclone v1.53.1
- os/arch: linux/amd64
- go version: go1.15

Which OS you are using and how many bits (eg Windows 7, 64 bit)

Elementary 5 (based on Ubuntu 18.04)

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 remote:

As to expect, other commands such as copy lead to the same issue.

A log from the command with the -vv flag (eg output from rclone -vv copy /tmp remote:tmp)

2020/10/24 01:12:00 DEBUG : rclone: Version "v1.53.1" starting with parameters ["rclone" "lsd" "remote:" "-vv"]
2020/10/24 01:12:00 DEBUG : Using config file from "/home/user/.config/rclone/rclone.conf"
2020/10/24 01:12:00 DEBUG : Creating backend with remote "remote:"
2020/10/24 01:12:00 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)
2020/10/24 01:12:00 DEBUG : pacer: Rate limited, increasing sleep to 200ms
2020/10/24 01:12:01 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)
2020/10/24 01:12:01 DEBUG : pacer: Rate limited, increasing sleep to 400ms
2020/10/24 01:12:01 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)
2020/10/24 01:12:01 DEBUG : pacer: Rate limited, increasing sleep to 800ms
2020/10/24 01:12:02 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)
2020/10/24 01:12:02 DEBUG : pacer: Rate limited, increasing sleep to 1.6s
2020/10/24 01:12:03 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)
2020/10/24 01:12:03 DEBUG : pacer: Rate limited, increasing sleep to 2s
2020/10/24 01:12:04 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)
2020/10/24 01:12:06 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)
2020/10/24 01:12:08 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)
2020/10/24 01:12:10 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)
2020/10/24 01:12:12 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)
2020/10/24 01:12:12 Failed to create file system for "remote:": NewFs: couldn't connect SSH: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain

Please let me know if you need any more information.

SFTP bug

Most helpful comment

Hey @darthShadow,

while preparing the outputs I've stumbled upon the issue. The service uses a non-standard port and missed that in my config. Sorry! Thanks for replying and indirectly helping to resolve the issue!

Cheers,
Peter

All 2 comments

Can you specify the config file too? And add the debug logs (via -vvv) from a working SSH connect?

Hey @darthShadow,

while preparing the outputs I've stumbled upon the issue. The service uses a non-standard port and missed that in my config. Sorry! Thanks for replying and indirectly helping to resolve the issue!

Cheers,
Peter

Was this page helpful?
0 / 5 - 0 ratings