Cheat Sheets

SSH - AllowTcpForwarding no

Description

Checks /etc/ssh/sshd_config for AllowTcpForwarding no

Check Script: ssh-no-tcp-forward.sh

#!/bin/bash

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