Activate SSH server on macOS
Jump to navigation
Jump to search
↑ http://osxdaily.com/2016/08/16/enable-ssh-mac-command-line/
- 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
- macOS: macOS versions, iTerm2, Homebrew, FileVault, System Integrity Protection,
dscacheutil
,networksetup
, XNU kernel, APFS, diskutil, mdfind, Keychain Access, Growl, Activity Monitor, sidecar, macOS FHS, Apple Notification Center,sw_vers
, Spotlight,pbcopy
, MacOS application firewall,Applesimutils
, Automatic login,security (command)
,codesign
,spctl
, Alfred, Xcode,system_profiler
,log show
, MacOS Preview, Rectangle app, Finder, macOS: Shortcuts, SEP, osascript, macOS profile, UTM,softwareupdate, systemsetup, pmset
, macOS tips, macOS Dock, Automator, SIP, System Preferences,installer, cryptex
, AirPlay, macOs first setup, Universal Control, menu bar, IPSW sshd
,sshd logs
,sshd -t
,sshd -T
,sshd_config
,sftp
Advertising: