Updating SSH Server (sshd) on MacOSX to require both password and public key authentication…

To update the sshd on macosx to require both password and public-key authentication, do the following… Go to /etc/ssh Edit sshd_config and add the following line: AuthenticationMethods publickey,password If the PasswordAuthentication line exists, make sure it is commented out: #PasswordAuthentication yes Restart the server by running these two commands: sudo launchctl unload /System/Library/LaunchDaemons/ssh.plist sudo launchctl load -w /System/Library/LaunchDaemons/ssh.plist