Last active
March 24, 2025 02:52
-
-
Save influx6/46c39709a67f09908cc7542ca444fca2 to your computer and use it in GitHub Desktop.
Restart SSH on Mac Terminal (High Sierra)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# high sierra | |
sudo launchctl stop com.openssh.sshd | |
sudo launchctl start com.openssh.sshd | |
# latest | |
sudo vim /etc/services # (update the port config for ssh and save) | |
sudo launchctl unload /System/Library/LaunchDaemons/ssh.plist | |
sudo launchctl load -w /System/Library/LaunchDaemons/ssh.plist |
How restart SSH on Macbook Pro?
Go to System Preferences > Sharing, uncheck Remote Login, recheck Remote Login
this worked for me on macOS Sonoma
as doing sudo launchctl stop com.openssh.sshd
gave me Not privileged to stop service.
error
How restart SSH on Macbook Pro?
Go to System Preferences > Sharing, uncheck Remote Login, recheck Remote Loginthis worked for me on macOS Sonoma
as doing
sudo launchctl stop com.openssh.sshd
gave meNot privileged to stop service.
error
Same
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How restart SSH on Macbook Pro?
Go to System Preferences > Sharing, uncheck Remote Login, recheck Remote Login