rsync invoked by macOS Shortcut automation doesn't prompt SSH biometrics
Scenario
I've got a simple workflow where I'm running rsync
to a seedbox periodically. The SSH key is being managed by 1Password. Running rsync
directly works like a charm.
I'm yak shaving here but I wanted to run the script from Apple's Shortcuts app so I could put the action on the dock or toolbar for a one click solution.
Problem
Apple Shortcuts offers a "Run Shell Script" action and I'm just running rsync
directly there. When you run the script it hangs until it times out with this error.
sign_and_send_pubkey: signing failed for ED25519 "Seedbox SSH Key" from agent: communication with agent failed
Permission denied, please try again.
Permission denied, please try again.
<user>@<host>: Permission denied (publickey).
rsync: connection unexpectedly closed (0 bytes received so far) [receiver]
rsync error: unexplained error (code 255) at /AppleInternal/Library/BuildRoots/c2cb9645-dafc-11ed-aa26-6ec1e3b3f7b3/Library/Caches/com.apple.xbs/Sources/rsync/rsync/io.c(453) [receiver=2.6.9]
What appears to be happening is the authorization biometrics prompt doesn't ever appear and that's what's causing the timeout.
I'm not sure if this is because the Shortcuts app sandboxes everything real tight which makes this use case impossible or some event is getting eaten.
1Password Version: 8.10.8
Extension Version: Not Provided
OS Version: macOS 13.4.1
Browser: Not Provided