Cheat Sheets

SSH - Strict Modes enabled

Description

Checks /etc/ssh/sshd_config for StrictModes no

Solution

sed -i 's/StrictModes.*no/StrictModes yes/' /etc/ssh/sshd_config

Check Script: ssh-strict-mode.sh

#!/bin/bash

if grep -q "StrictModes no" /etc/ssh/sshd_config 2>/dev/null; then result_failed else result_ok fi
Comment on Disqus