Issue
I set up an macOS jenkins agent and tried to ran jenkins job on it, job failed with "Operation not permitted":
src="https://i.stack.imgur.com/fNwn3.png" alt="enter image description here" />
Remark: macOS agent is launched via ssh.
Solution
The problem is caused by secure setting on macOS agent, enable sshd-keygen-wrapper Full Disk Access
fixed this issue:
Answered By - 聂超群
Answer Checked By - Willingham (JavaFixing Volunteer)