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?

  • 3
    There is a reason why admin rights are required to enable remote access... – nohillside Oct 26 '17 at 14:08
  • It's not a bad question - not sure why the down vote. – bmike Oct 27 '17 at 23:24
  • Do you have a physical access to the targeted Mac? – dan Oct 28 '17 at 14:55
  • Will your friend accept the gift of a new nice looking USB key? – dan Oct 28 '17 at 14:56
  • Does your friend click quickly on link within his E-mail? – dan Oct 28 '17 at 14:57

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.

You must log in to answer this question.