Difference between revisions of "Activate SSH server on macOS"
Jump to navigation
Jump to search
↑ http://osxdaily.com/2016/08/16/enable-ssh-mac-command-line/
(4 intermediate revisions by 2 users not shown) | |||
Line 3: | Line 3: | ||
* Status: <code>[[sudo systemsetup -getremotelogin]]</code> | * Status: <code>[[sudo systemsetup -getremotelogin]]</code> | ||
− | Disable | + | |
+ | [[setremotelogin]]: Turning Remote Login on or off requires [[Full Disk Access]] privileges. | ||
+ | |||
+ | ===Disable=== | ||
sudo systemsetup -setremotelogin off | 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)? | ||
== Related commands == | == Related commands == | ||
− | * <code>sudo [[launchctl stop | + | * <code>sudo [[launchctl stop com.openssh.sshd]]</code> |
− | * <code>sudo [[launchctl start]] | + | * <code>sudo [[launchctl start]]</code> |
== See also == | == See also == | ||
− | * {{ | + | * {{launchctl}} |
* {{sshd}} | * {{sshd}} | ||
Latest revision as of 10:30, 4 September 2023
- Enable:
sudo systemsetup -setremotelogin on
[1] - Disable:
sudo systemsetup -setremotelogin off
- Status:
sudo systemsetup -getremotelogin
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]
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: