Skip to content

Instantly share code, notes, and snippets.

View lizthegrey's full-sized avatar

Liz Fong-Jones lizthegrey

View GitHub Profile
@lizthegrey
lizthegrey / attributes.rb
Last active March 27, 2025 02:16
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'
package main
import (
"fmt"
"reflect"
)
func main() {
var empty []string
empty2 := []string{}