rclone: rclone not working with ssh-agent, possibly linked to macOS 10.12

What is your rclone version (eg output from rclone -V)

rclone-v1.36

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

macOS 10.12.3

Which cloud storage system are you using? (eg Google Drive)

SFTP

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

Any rclone command depending on ssh-agent.

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

rclone-v1.35-158-g4652db3β-osx-amd64/rclone lsd seit:
2017/03/06 14:33:52 Failed to create file system for "seit:": couldn't connect ssh: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain

And yet ssh remote_server_foo.bar.com works perfectly with the key, i.e. no password request.

Here’s the config:

[seit]
type = sftp
host = remote_server_foo.bar.com
user = kenz
port = 
pass = 
--------------------
Edit remote
Value "host" = "remote_server_foo.bar.com"
Edit? (y/n)>
y) Yes
n) No

After it didn’t work, I edited the config to add a password and it worked again. So I’m fairly sure I configured everything else properly.

Links to #521.

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 22 (8 by maintainers)

Commits related to this issue

Most upvoted comments

Would it be helpful if rclone could use a key file directly without using ssh-agent?

FYI

I’ve used this method successfully:

  1. ssh-add -K path/to/my_key [needed once only]

  2. Use this bash script for my scheduled backups


pic


So the agent is killed after the sync or copy has finished.

Howard