Enabling SSH service from command line in MacOS can be done using with some brief commands without using the GUI (Sytem preferences).
To do that, open an Terminal window and run the following commands:
$ systemsetup -setremotelogin on
$ sudo sudo launchctl load -w /System/Library/LaunchDaemons/ssh.plist
To disable remote login (SSH):
$ systemsetup -setremotelogin off
Do you really want to turn remote login off? If you do, you will lose this connection and can only turn it back on locally Read more...
launchctl
All posts tagged launchctl
para el samba y parar e iniciar procesos en snow lepard:
Stop or start daemons in MacOS Snow Leopoard is very easy running System Preferences pannel and select Sharing, you will find all the sharing applications (or daemons/agents) like SAMBA, FTP, SSH, etc, but, what about start or stop them using the console...
Here is how to do it.
You have two options, one deprecated and other more modern:
# service --list
to list the available services to work with.
but you will receive this Read more...