I want to play a prank with my friend in where I open a ssh connection with his Mac. I need SSH to be enabled on this Mac first, which requires admin rights.
Is there any other I can enable SSH without sudo or an AppleScript?
Ask Different is a question and answer site for power users of Apple hardware and software. It only takes a minute to sign up.Sign up to join this community
I would hope not since that would be a huge security vulnerability in the OS. Remote executable access without end user approval would be a highly exploitable vulnerability in the OS.
That being said, I wouldn't presume it's not possible but if it were possible, I would expect that to be a very closely guarded secret and not shared publicly.
A "white hat" might disclose this to Apple, the vendor to fix and then announce.
A "black hat" might develop the exploit and then sell it for millions of $$ or weaponize it for their nationality / social group of choice.
At this point, the definition of who is wearing the white/black hats is going to be highly controversial and subjective. About the only thing everyone can agree upon is all hat colors gain/lose social status having found and chosen how they disclose.