Skip to content

How to restart ssh service on macOS

sudo launchctl unload /System/Library/LaunchDaemons/ssh.plist
sudo launchctl load -w /System/Library/LaunchDaemons/ssh.plist 

sudo launchctl stop com.openssh.sshd
sudo launchctl start com.openssh.sshd
Published inUncategorized

Be First to Comment

Leave a Reply

Your email address will not be published. Required fields are marked *