Activate SSH server on macOS
- Enable:
sudo systemsetup -setremotelogin on
[1] - Disable:
sudo systemsetup -setremotelogin off
- Status:
sudo systemsetup -getremotelogin
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
launchctl
,launchctl unload
,launchctl load
,launchctl list
,launchctl start
,launchctl stop
,/System/Library/LaunchDaemons/
,launchctl stop com.openssh.sshd
,launchctl bootout
,/System/Library/LaunchDaemons/ssh.plist
sshd
,sshd logs
,sshd -t
,sshd -T
,sshd_config
,sftp
Advertising: