-
-
Save influx6/46c39709a67f09908cc7542ca444fca2 to your computer and use it in GitHub Desktop.
# 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 |
Welcome man @cndcourt
That helped me in my case, thank you!
I had an issue with connecting to my server where I got an error:
port 22: Connection refused
Reseting ssh solved the issue :)
@nicksowl Glad, it helped.
How restart SSH on Macbook Pro?
Go to System Preferences > Sharing, uncheck Remote Login, recheck Remote Login
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
Thank you for posting - my ssh-agent was really jammed. Keep up the great work.