rclone: SFTP - error couldn't connect SSH: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none], no supported methods remain

What is the problem you are having with rclone?

Error while trying to connect into specific SFTP.

What is your rclone version (output from rclone version)

rclone v1.51.0

  • os/arch: linux/amd64
  • go version: go1.13.7

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

Linux - Ubuntu

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

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

2020/04/27 23:03:33 DEBUG : pacer: low level retry 7/10 (error couldn’t connect SSH: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none], no supported methods remain) 2020/04/27 23:03:44 DEBUG : pacer: low level retry 8/10 (error couldn’t connect SSH: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none], no supported methods remain) … 2020/04/27 23:04:04 Failed to create file system for “XXXXXX:”: NewFs: couldn’t connect SSH: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none], no supported methods remain

More information: FileZilla is working also sftp command line (OpenSSH).

/etc/ssh/ssh_config

Host *
   PasswordAuthentication yes

rclone.config

[c_sftp]
type = sftp                                   
host = sftp.XXXXX.com                  
user = YYYY                           
pass = XXXXXXXXXX
disable_hashcheck = true 
set_modtime = false

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 1
  • Comments: 23 (9 by maintainers)

Commits related to this issue

Most upvoted comments

I had this issue with the rclone version from ubuntu

$ rclone --version
rclone v1.53.3-DEV
- os/arch: linux/amd64
- go version: go1.18.1

Updated to v1.62.2 through the script installation resolved the issue 👍.

I have same problem:

2020/08/10 21:19:43 DEBUG : pacer: Rate limited, increasing sleep to 2s
2020/08/10 21:19:45 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/08/10 21:19:47 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/08/10 21:19:49 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/08/10 21:19:51 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/08/10 21:19:53 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)

This server uses publickey authentication:

debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,ssh-rsa,rsa-sha2-256,rsa-sha2-512,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521>
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey
debug1: Next authentication method: publickey
debug1: Offering public key: cardno:XXXX RSA SHA256:[CUT] agent
debug1: Server accepts key: cardno:XXX RSA SHA256:[CUT] agent
debug1: Authentication succeeded (publickey).

I had similar/same issue using current Ubuntu distribution version:

rclone v1.53.3-DEV
- os/arch: linux/amd64
- go version: go1.18

on SSH access to local container using public key auth. Upgrading to latest executable from website fixed this for me.

rclone v1.59.2
- os/version: ubuntu 22.04 (64 bit)
- os/kernel: 5.15.0-48-generic (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.18.6
- go/linking: static
- go/tags: none

Thank you.

NICE! fixexd! both config works! image image Good Job 😃

still dont working 😦 i also tried it with remove the ask apssword and used the ask password advanced config of sftp remote setup