Repository navigation
Description
What is the problem you are having with rclone?
I cannot configure an iCloud storage because I never get the 2FA request on any of my apple devices.
On stable release I dont have any 2FA message, on beta rclone ask for the 2FA code but I don't receive. I tried on beta since I see a lot of issues "resolved" by using the beta branch.
What is your rclone version (output from rclone version)
I tried on latest main v1.73.5 and on latest beta v1.74.0-beta.9637.c5df1ddf4
Which OS you are using and how many bits (e.g. Windows 7, 64 bit)
I try use docker on a Debian 13 VM hosted on a proxmox 8 server.
Which cloud storage system are you using? (e.g. Google Drive)
iCloud Drive
The command you were trying to run (e.g. rclone copy /tmp remote:tmp)
root@Backup-iCloud:~# docker run --rm -it --volume /root/rclone:/config/rclone rclone/rclone:beta -vv config
A log from the command with the -vv flag (e.g. output from rclone -vv copy /tmp remote:tmp)
2026/04/20 10:34:31 DEBUG : iclouddrive: config in: state="*all-advanced", result="false"
2026/04/20 10:34:31 DEBUG : iclouddrive: config out: out=&{State:*postconfig Option: OAuth: Error: Result:}, err=
2026/04/20 10:34:31 DEBUG : iclouddrive: config in: state="*postconfig", result=""
2026/04/20 10:34:31 DEBUG : iclouddrive: config in: state="", result=""
2026/04/20 10:34:31 DEBUG : icloud: Authenticating as [email protected]
2026/04/20 10:34:33 DEBUG : icloud: SRP sign in requires 2FA
2026/04/20 10:34:33 DEBUG : Saving config "cookies" in section "iclouddrive" of the config file
2026/04/20 10:34:33 DEBUG : iclouddrive: config out: out=&{State:2fa_do Option: OAuth: Error: Result:}, err=
2026/04/20 10:34:33 DEBUG : iclouddrive: config out: out=&{State:2fa_do Option: OAuth: Error: Result:}, err=
2026/04/20 10:34:33 DEBUG : iclouddrive: config: reading config parameter "config_2fa"
Option config_2fa.
Two-factor authentication: please enter your 2FA code
Enter a value.
config_2fa>
How to use GitHub
- Please use the 👍 reaction to show that you are affected by the same issue.
- Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
- Subscribe to receive notifications on status change and new comments.
Activity
ItsAperoTime commentedon Apr 23, 2026
Tips/workaround: I was able to configure it with a 2FA code by switching my iPhone in airplane mode (without wifi or cellular enabled) then in setting go on the apple account and it prompts a 2FA offline code. It worked this way but ofc the issue is not solved.
ncw commentedon Apr 23, 2026
Thanks for the workaround @ItsAperoTime
@mikegillan Any thoughts on this? I closed #9324 in favor of this issue since it is more focussed.
mikegillan commentedon Apr 23, 2026
This smells similar to the issues that others found and solved in our other iCloud SRP replacement PR. @ncw I'm happy to take a look at it.
Lyapsus commentedon Apr 24, 2026
Gentlemen, would you mind to try #9234?
From #8587 I learned the symptom to be macOS/iOS 26.4+ on any of devices with a given Apple account (ever signed in?) and sadly I see no mentions of your versions there. Is this the case per chance?
andrew-schulman commentedon Apr 25, 2026
Yes, I'm affected by this and I have devices running iOS 26.4. Almost all iOS users will be running 26.4 by now.
andrew-schulman commentedon Apr 25, 2026
Not sure of the right way to try #9234.
Lyapsus commentedon Apr 25, 2026
@andrew-schulman basically like this:
andrew-schulman commentedon Apr 27, 2026
@Lyapsus Thanks for the instructions. Yes, the icloud-photos branch lets me authenticate to iCloud. I get the 2FA prompt and code. 😎️
ncw commentedon Apr 27, 2026
I have merged the icloud photos branch to master now which means it will be in the latest beta in 15-30 minutes and released in v1.74
Please give it a try and if it works I'll close this issue.
Thanks
andrew-schulman commentedon Apr 27, 2026
Confirmed working for me in 1.74.0.beta.9673.d0c469c3c.
ItsAperoTime commentedon Apr 28, 2026
Confirmed working too for me with rclone v1.74.0-beta.9673.d0c469c3c !
ncw commentedon Apr 28, 2026
Thanks for testing @andrew-schulman and @ItsAperoTime - I'll close this issue now.