When using rclone on Windows 8.1 from a Cygwin shell or the shell provided by Git in Windows, asking for a password fails. Here is an example interaction:
~/d/Downloads/rclone-v1.40-windows-amd64 % rclone config
2018/04/25 10:00:04 NOTICE: Config file "C:\\Users\\rpost\\.rclone.conf" not found - using defaults
No remotes found - make a new one
n) New remote
s) Set configuration password
q) Quit config
n/s/q> s
Your configuration is not encrypted.
If you add a password, you will protect your login information to cloud services.
a) Add Password
q) Quit to main menu
a/q> a
Enter NEW configuration password:
password:
2018/04/25 10:00:12 Failed to read password: The handle is invalid.
Once an encryption password is set, rclone
will ask for it immediately, which also fails.The workaround is to set the RCLONE_CONFIG_PASS
environment variable prior to invoking rclone
.
This doesn’t occur when using cmd
, the Windows command line interpreter.
A fix or better workaround will be appreciated.