Difference between revisions of "Activate SSH server on macOS"

From wikieduonline
Jump to navigation Jump to search
(Created page with ": Enable: <code>sudo systemsetup -setremotelogin on</code><ref>http://osxdaily.com/2016/08/16/enable-ssh-mac-command-line/</ref> : Disable: <code>sudo systemsetup -setremotelo...")
Tags: Mobile web edit, Mobile edit
 
 
(17 intermediate revisions by 2 users not shown)
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>
  
  
 +
[[setremotelogin]]: Turning Remote Login on or off requires [[Full Disk Access]] privileges.
 +
 +
===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 ==
 +
* <code>sudo [[launchctl stop com.openssh.sshd]]</code>
 +
* <code>sudo [[launchctl start]]</code>
  
 
== See also ==  
 
== See also ==  
* {{macOS}}
+
* {{launchctl}}
 
* {{sshd}}
 
* {{sshd}}
 +
 +
 +
[[Category:macOS]]
 +
[[Category:SSH]]

Latest revision as of 10:30, 4 September 2023


setremotelogin: Turning Remote Login on or off requires Full Disk Access privileges.

Disable[edit]

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[edit]

See also[edit]

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