FTP Password from macOS Keychain, need configuration help

What is the problem you are having with rclone?

I try to access ftp passwords from macOS keychain, but i am sure i am doing it wrong.
I can access the correct entry from the keychain when i run

security find-internet-password -a user -s domain.de -g

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

rclone v1.60.1

  • os/version: darwin 12.6.1 (64 bit)
  • os/kernel: 21.6.0 (arm64)
  • os/type: darwin
  • os/arch: arm64
  • go/version: go1.19.3
  • go/linking: dynamic
  • go/tags: none

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


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

$ rclone copy --progress --password-command "security find-internet-password -a user -s domain.de -w" --config rclone.conf source destination 

Failed to create file system for "domain.de:www/wp/wp-content/uploads": NewFS decrypt password: base64 decode failed when revealing password - is it obscured?: illegal base64 data at input byte 8

The rclone config contents with secrets removed.

file rclone.conf

type = ftp
host = domain.de
user = user

I am new to rclone and not very good at shell scripting, thanks for any help!

This is for decrypting rclone's config file.

There isn't currently a way (other than with a bit of scripting) to do this with rclone FTP backend.

You could do something like this to get the password in the environment (untested) for rclone to use directly

pass=$(security find-internet-password -a user -s domain.de -w)
export RCLONE_FTP_PASS=$(rclone obscure ${pass})

FANTASTIC! Thanks so much for your quick answer, this solves it!

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.