Created
May 11, 2022 17:59
-
-
Save trodemaster/9c821da43760bcc10de669bcb1e61926 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# setup macOS sshd config file to disable ssh pasword auth | |
sudo tee /etc/ssh/sshd_config.d/206-key-auth-only.conf >/dev/null <<-EOF | |
ChallengeResponseAuthentication no | |
PasswordAuthentication no | |
UsePAM no | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment