Difference between revisions of "Activate SSH server on macOS"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
Tags: Mobile web edit, Mobile edit
Line 9: Line 9:
  
 
Disable:  
 
Disable:  
::<code>sudo systemsetup -setremotelogin off</code>
+
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)?
+
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)?
  
  

Revision as of 10:23, 13 May 2020

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

 sudo launchctl stop com.openssh.sshd 


See also

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