First of all, huge kudos for creating rclone. It has worked very well with Google Drive and project has a lot of potential!
I use an SFTP servers a lot. There are SFTP servers, where the keys are not setup.
When I try to connect to those, the rclone connection always fails. While common sftp connection still works.
So is there a strategic policy, that rclone should not work with sftp servers simply with a password and without any keys (ssh-agents or specifying a key file), or is there something else?
I have tried this on three different hosts, which all have a different version of rclone (1.38, 1.39 and 1.40 (latest beta from 29.3.2018)).
Error is: “Failed to create file system for “******:”: NewFs: couldn’t connect SSH: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none], no supported methods remain”
It has basically the same output:
2018/04/01 06:28:03 DEBUG : Using config file from “/home/******/.config/rclone/rclone.conf”
2018/04/01 06:28:03 DEBUG : rclone: Version “v1.38” starting with parameters [“rclone” “-vv” “lsd” “localhost_sftp:”]
2018/04/01 06:28:03 Failed to create file system for “localhost_sftp:”: NewFs: couldn’t connect SSH: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none], no supported methods remain
Config:
[localhost_sftp]
host = localhost
user = **********
port =
pass = *** ENCRYPTED ***
key_file =
And with common sftp:
$ sftp *******@localhost
Password:
Connected to localhost.
sftp>
As I haven’t ever touched Go, I didn’t want to dig into code.
Actually, problem was exactly what error message says. password authentication is not enabled.
Changing conf with “PasswordAuthentication yes”, changed the situation.
Didn’t come to think of this, because on these servers it used keyboard-interactive, but it wasn’t actually setup with OTP, but just simple password auth using the keyboard-interactive and I have always disabled the password authentication in those servers.
So once again, problem was between the chair and keyboard.