if perl shows the error “setting locale failed”,
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
Run the following (i.e for spanish)
# sudo locale-gen es_ES.UTF-8
# dpkg-reconfigure locales
it can be also en_EN.UTF-8, or any other locale.
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...