Skip to content

Instantly share code, notes, and snippets.

@trodemaster
Created May 11, 2022 17:59
Show Gist options
  • Save trodemaster/9c821da43760bcc10de669bcb1e61926 to your computer and use it in GitHub Desktop.
Save trodemaster/9c821da43760bcc10de669bcb1e61926 to your computer and use it in GitHub Desktop.
# 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