Enable remote login (SSH)

systemsetup

  • Configure System Preferences machine settings.
    More information: <https://support.apple.com/guide/remote-desktop/about-systemsetup-apd95406b8d/mac>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

systemsetup -setremotelogin on

click the source code to copy