Skip to content

Instantly share code, notes, and snippets.

View gurvindersingh's full-sized avatar

Gurvinder Singh gurvindersingh

  • Trondheim, Norway
View GitHub Profile
@gurvindersingh
gurvindersingh / attributes.rb
Last active April 20, 2019 20:55 — forked from lizthegrey/attributes.rb
Hardening SSH with 2fa
default['sshd']['sshd_config']['AuthenticationMethods'] = 'publickey,keyboard-interactive:pam'
default['sshd']['sshd_config']['ChallengeResponseAuthentication'] = 'yes'
default['sshd']['sshd_config']['PasswordAuthentication'] = 'no'