...
No need to restart ssh daemon. New sessions will require a key. However as a note,
Code Block | ||
---|---|---|
| ||
sudo launchctl stop com.openssh.sshd
sudo launchctl start com.openssh.sshd |
For older OS X you might need to run,
Code Block | ||
---|---|---|
| ||
sudo launchctl unload /System/Library/LaunchDaemons/ssh.plist; sudo launchctl load /System/Library/LaunchDaemons/ssh.plist |
...