How to restart ssh service on macOS?

How to restart SSH in Mac Pro?

When I used: sudo service ssh restart its shows:

Command not found

sudo service ssh restart, Command not found

2

2 Answers

Try with:

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

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

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like