Tools
Enable remote login
sudo systemsetup -setremotelogin on
Check ssh service status
sudo systemsetup -getremotelogin
It will display as
Remote Login: On
The account password is the same as the Mac login password. Overall, macOS setup is very convenient.
Linux
No need to mention, if you’re using Linux, you definitely know how.
Windows
A mess, still haven’t figured it out.