Cheat Sheets

SSH - No keyboard auth

Description

/etc/ssh/sshd_config must not have enabled keyboard-interactive authentication

Check Script: ssh-no-keyboard.sh

#!/bin/bash

if grep -q "^[[:space:]]*[^#]keyboard-interactive" /etc/ssh/sshd_config 2>/dev/null; then result_ok else result_failed "Found keyboard-interactive in /etc/ssh/sshd_config" fi
Comment on Disqus