Difference between revisions of "Activate SSH server on macOS"

From wikieduonline
Jump to navigation Jump to search
Line 1: Line 1:
: Enable: <code>sudo [[systemsetup]] -setremotelogin on</code><ref>http://osxdaily.com/2016/08/16/enable-ssh-mac-command-line/</ref>
+
: Enable: <code>sudo [[systemsetup]] -[[setremotelogin]] on</code><ref>http://osxdaily.com/2016/08/16/enable-ssh-mac-command-line/</ref>
 
: Disable: <code>sudo systemsetup -setremotelogin off</code>
 
: Disable: <code>sudo systemsetup -setremotelogin off</code>
 
: Status: <code>sudo systemsetup -getremotelogin</code>
 
: Status: <code>sudo systemsetup -getremotelogin</code>

Revision as of 16:48, 5 October 2021

Enable: sudo systemsetup -setremotelogin on[1]
Disable: sudo systemsetup -setremotelogin off
Status: sudo systemsetup -getremotelogin


sudo systemsetup -getremotelogin
Remote Login: On

Disable:

sudo 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 at the server (yes/no)?


Related commands

See also

  • http://osxdaily.com/2016/08/16/enable-ssh-mac-command-line/
  • Advertising: