Skip to content

Instantly share code, notes, and snippets.

@influx6
Last active December 16, 2023 09:26
Show Gist options
  • Star 22 You must be signed in to star a gist
  • Fork 5 You must be signed in to fork a gist
  • Save influx6/46c39709a67f09908cc7542ca444fca2 to your computer and use it in GitHub Desktop.
Save influx6/46c39709a67f09908cc7542ca444fca2 to your computer and use it in GitHub Desktop.
Restart SSH on Mac Terminal (High Sierra)
# 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
@MalarvizhiK
Copy link

How restart SSH on Macbook Pro?

Go to System Preferences > Sharing, uncheck Remote Login, recheck Remote Login

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment