Apple icloud remote never received 2FA code!

What is the problem you are having with rclone?

Cannot create a new icloud remote. Rclone config waits for and wants a 2FA code only Apple never sends me one. I do receive an email from apple with "Your Apple ID was used to sign in to iCloud via a web browser." as the subject.about a minute after trying to create the remote or reconnect the remote.

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

rclone v1.69.1

  • os/version: Microsoft Windows 11 Home 24H2 24H2 (64 bit)
  • os/kernel: 10.0.26100.3194 (x86_64)
  • os/type: windows
  • os/arch: amd64
  • go/version: go1.24.0
  • go/linking: static
  • go/tags: cmount

Are you on the latest version of rclone? You can validate by checking the version listed here: Rclone downloads
--> Yes. I am using the latest version.

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

Apple icloud

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


I am trying to successfully create a new icloud remote.

```rclone config reconnect jsic:


#### Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.
<!--  You should use 3 backticks to begin and end your paste to make it readable.   -->

[jsic]
type = iclouddrive
apple_id = XXX
password = XXX
cookies = XXX



#### A log from the command that you were trying to run with the `-vv` flag  
<!-- You should use 3 backticks to begin and end your paste to make it readable.  Or use a service such as https://pastebin.com or https://gist.github.com/   -->

Paste log here

C:\Users\dking>rclone -vv config reconnect jsic:
2025/02/19 19:15:38 DEBUG : rclone: Version "v1.69.1" starting with parameters ["rclone" "-vv" "config" "reconnect" "jsic:"]
2025/02/19 19:15:38 DEBUG : Using config file from "C:\\Users\\dking\\AppData\\Roaming\\rclone\\rclone.conf"
2025/02/19 19:15:38 DEBUG : jsic: config in: state="", result=""
2025/02/19 19:15:38 DEBUG : icloud: Authenticating as schmojoe240@gmail.com
2025/02/19 19:15:39 DEBUG : Saving config "cookies" in section "jsic" of the config file
2025/02/19 19:15:39 DEBUG : Keeping previous permissions for config file: -rw-rw-rw-
2025/02/19 19:15:39 DEBUG : jsic: config out: out=&{State:2fa_do Option: OAuth:<nil> Error: Result:}, err=<nil>
2025/02/19 19:15:39 DEBUG : jsic: config: reading config parameter "config_2fa"
Option config_2fa.
Two-factor authentication: please enter your 2FA code
Enter a value.
config_2fa>

Additional information about my configuration if it helps anybody looking into this.

I don't have any Apple Hardware but I do have an iCloud account and I can log into it successfully in a browser on Windows. It asks me for a code and apple send the code to my phone that I enter in the browser and it lets me in. I have two phone numbers registered and the browser asks me which one it wants me to have the code sent to. I started with only one phone number and it doesn't work that way either.

I use my email address as my Apple ID as I do not have a separate Apple ID.